caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Accessing constructors (tags) from C
@ 2008-11-23 18:22 Raj Bandyopadhyay
  2008-11-23 18:38 ` [Caml-list] " Eric Cooper
  2008-11-23 18:42 ` David Allsopp
  0 siblings, 2 replies; 4+ messages in thread
From: Raj Bandyopadhyay @ 2008-11-23 18:22 UTC (permalink / raw)
  To: caml-list

Hi all

I was wondering how to access constructors from C. For example if I 
define a type

type t = Null | Int of int

and I want to create values of type t in C using the OCaml-C interface, 
how do I find
the integers corresponding to constructors Null or Int? I would like to 
do this for a large OCaml program with lots of different types etc.

Thanks!
Raj


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

end of thread, other threads:[~2008-11-23 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-23 18:22 Accessing constructors (tags) from C Raj Bandyopadhyay
2008-11-23 18:38 ` [Caml-list] " Eric Cooper
2008-11-23 18:42 ` David Allsopp
2008-11-23 21:49   ` Mathias Kende

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