English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] "Nasty" functions and memory usage
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-03-29 (05:48)
From: David Fox <dsfox@c...>
Subject: [Caml-list] Quick question - accessing variant value from C
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