caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Quick question - accessing variant value from C
@ 2001-03-29  5:48 David Fox
  2001-03-29  7:54 ` Jean-Christophe Filliatre
  0 siblings, 1 reply; 3+ messages in thread
From: David Fox @ 2001-03-29  5:48 UTC (permalink / raw)
  To: caml-list

I have a value of the following type being passed to an external:

  type pointer = Null | Address of string

and I'd like to determine (in the C code) which variant the value is
and get the pointer to the string.  I've stared at mlvalues.h for a
while, but I can't really figure it out.  Can anyone help?  You won't
regret it...
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2001-03-29  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-29  5:48 [Caml-list] Quick question - accessing variant value from C David Fox
2001-03-29  7:54 ` Jean-Christophe Filliatre
2001-03-29  8:36   ` Sven LUTHER

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