caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Existential types
@ 2005-09-04 19:43 Lukasz Stafiniak
  2005-09-04 23:28 ` [Caml-list] " Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Stafiniak @ 2005-09-04 19:43 UTC (permalink / raw)
  To: caml users

Hi!

I use an abstract type and a one-way typecast operator to implement
existential quantification; e. g.

type 'a t
type unknown_t
let some (v : 'a t) = ((Obj.magic v) : unknown_t t)

Good?

Best Regards,
Lukasz


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

end of thread, other threads:[~2005-09-05 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-04 19:43 Existential types Lukasz Stafiniak
2005-09-04 23:28 ` [Caml-list] " Jacques Garrigue
2005-09-05 12:26   ` Lukasz Stafiniak

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