Version française
Home     About     Download     Resources     Contact us    
Browse thread
Converting variants with only constant constructors to integers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: W Dan Meyer <wojciech.meyer@g...>
Subject: Re: [Caml-list] Converting variants with only constant constructors to integers
bluestorm <bluestorm.dylc@gmail.com> writes:

> Beware that "%identity" is an unsafe feature that breaks all safety guarantees
> if used badly.

Yes %identity is another solution. Although as safe as Obj.magic.
Sorry about posting code in the previous post.

>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs