caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Cyclic type abbreviation
@ 2015-11-13 12:49 Christoph Höger
  2015-11-13 13:15 ` Mr. Herr
  0 siblings, 1 reply; 10+ messages in thread
From: Christoph Höger @ 2015-11-13 12:49 UTC (permalink / raw)
  To: caml users

Dear all,

why is this type cyclic?

type node = int * tree * tree
 and tree = node option

I cannot introduce a manifest for the option type, as there is no Option
module (why is that, btw?) - so I would assume option to be special
enough to be handled like any other algebraic data type.
-- 
Christoph Höger

Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen

Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin

Tel.: +49 (30) 314-24890
E-Mail: christoph.hoeger@tu-berlin.de

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

end of thread, other threads:[~2015-11-16 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 12:49 [Caml-list] Cyclic type abbreviation Christoph Höger
2015-11-13 13:15 ` Mr. Herr
2015-11-13 13:37   ` David Allsopp
2015-11-13 13:46     ` Romain Bardou
2015-11-13 14:24       ` Romain Bardou
2015-11-16  5:43         ` Ben Millwood
2015-11-16 16:42       ` peterfrey
2015-11-16 17:08         ` Pierrick Couderc
2015-11-13 13:46     ` Christoph Höger
2015-11-13 13:53     ` Mr. Herr

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).