caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Why is this allowed?
@ 2010-05-31 14:46 Jacques Carette
  2010-05-31 15:06 ` [Caml-list] " Lukasz Stafiniak
  2010-05-31 15:43 ` Till Varoquaux
  0 siblings, 2 replies; 8+ messages in thread
From: Jacques Carette @ 2010-05-31 14:46 UTC (permalink / raw)
  To: caml-list

type foo = Foo
let x = Foo

type foo2 = Foo | Bar
let y = Foo
let z = (x,y) ;;

I thought that re-using of algebraic labels was not allowed - but 
apparently it is?  Note that this means that it is impossible to "text" 
print such structures and hope to recover them uniquely.  This also 
causes very subtle issues when Marshal'ing, and grave issues for code 
generation [think metaocaml].

Jacques


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

end of thread, other threads:[~2010-06-09 15:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31 14:46 Why is this allowed? Jacques Carette
2010-05-31 15:06 ` [Caml-list] " Lukasz Stafiniak
2010-05-31 15:48   ` Jacques Carette
2010-05-31 15:43 ` Till Varoquaux
2010-05-31 15:54   ` Jacques Carette
2010-06-09 15:11     ` Goswin von Brederlow
2010-06-09 15:17       ` bluestorm
2010-06-09 15:31         ` Jacques Carette

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