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] Calling C from OCaml and data representation question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vasili Galchin <vasiliocaml@y...>
Subject: [Caml-list] Calling C from OCaml and data representation question

    I am working on some run-time library project. I
have read in the online "OReilly" book the chapter
where it discusses data representation in particular C
functions, Long_val and Int_val. Is there really the
preferred way to handle data representation issues
from OCaml to C?? The reason I ask is that C is really
very bad about types like "int" and "long", i.e. these
types are not portable. It is really better to use
"unit32", "unit64", etc. If I have a 32 bit entity,
how can I use Long_val and Int_val safely?

Regards, Vasili 

Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: