recursive algebraic and class types

From: John Skaller (
Date: Wed Jul 14 1999 - 03:38:52 MET DST

Message-Id: <>
Date: Wed, 14 Jul 1999 11:38:52 +1000
From: John Skaller <>
Subject: recursive algebraic and class types

Someone recently posted a patch which allows class types
and algebraic types to be mixed in the same declaration,
so that they can be mutually recursive .. but I have lost
the email. Could I ask the patch be posted again?

Is there a simple workaround without the patch?

[I need something like

        type expr_t = X | Y of class_t
        class type class_t = object method lookup : expr_t -> expr_t end

BTW: when such changes to syntax are given, if applied they
will not be useful with camlp4 unless it too is patched. :-(

John Skaller email:
                phone: 61-2-96600850
                snail: 10/1 Toxteth Rd, Glebe NSW 2037, Australia

This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:23 MET