Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 (08:36)
From: Sven LUTHER <luther@d...>
Subject: Re: [Caml-list] Quick question - accessing variant value from C
On Thu, Mar 29, 2001 at 09:54:02AM +0200, Jean-Christophe Filliatre wrote:
> Hi,
> You can use the macros Is_long / Is_block to discriminate between Null
> and Address, since the first one  is represented as an integer and the
> second one  as a  structured block  (in the later  case, you  can then
> access the string with the Field macro).

Additionally, some reading of the "Interfacing C with Objective Caml" chapter
of the ocaml documentation is a must read for this, far more inmportant than
the mlvalues.h file, i think.


Sven Luther
To unsubscribe, mail  Archives: