From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id DAA00276; Sat, 6 Mar 2004 03:38:21 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA32416 for ; Sat, 6 Mar 2004 03:38:20 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from web41207.mail.yahoo.com (web41207.mail.yahoo.com [66.218.93.40]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i262cIUM016262 for ; Sat, 6 Mar 2004 03:38:19 +0100 Message-ID: <20040306023818.58510.qmail@web41207.mail.yahoo.com> Received: from [67.241.218.15] by web41207.mail.yahoo.com via HTTP; Fri, 05 Mar 2004 18:38:18 PST Date: Fri, 5 Mar 2004 18:38:18 -0800 (PST) From: Vasili Galchin Subject: [Caml-list] Calling C from OCaml and data representation question To: caml-list@inria.fr Cc: vasiliocaml@yahoo.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; run-time:01 val:01 val:01 ocaml:01 ocaml:01 int:01 int:01 unit:03 unit:03 library:03 types:03 types:03 data:03 data:03 discusses:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 63 Hello, 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 http://search.yahoo.com ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners