caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Why isn't -rectypes command line option the default
@ 2007-03-21  0:34 Erik de Castro Lopo
  2007-03-21  1:48 ` Zheng Li
  0 siblings, 1 reply; 7+ messages in thread
From: Erik de Castro Lopo @ 2007-03-21  0:34 UTC (permalink / raw)
  To: caml-list

Hi all,

If I try to define a recursive type like this:

    type 'a t = 'a * 'a t Lazy.t

the compiler won't accept it unless I add -rectypes to the compile
command.

I know I can avoid this by using a tag:

    type 'a t = Node of 'a * 'a t Lazy.t

but I was wondering if there was a reason why -rectypes wasn't the
default.

Cheers,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"The very definition of hell is having to maintain someone 
else's Perl code." -- Anonymous


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-21 12:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-21  0:34 Why isn't -rectypes command line option the default Erik de Castro Lopo
2007-03-21  1:48 ` Zheng Li
2007-03-21  2:13   ` [Caml-list] " Erik de Castro Lopo
2007-03-21  5:37     ` james woodyatt
2007-03-21  7:08       ` Erik de Castro Lopo
2007-03-21  9:01     ` Ville-Pertti Keinonen
2007-03-21 12:47     ` Gerd Stolpmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).