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 JAA28123; Mon, 13 May 2002 09:01:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA27937 for caml-list@pauillac.inria.fr; Mon, 13 May 2002 09:01:04 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA20467 for ; Sun, 12 May 2002 22:45:25 +0200 (MET DST) Received: from kruuna.Helsinki.FI (kruuna.helsinki.fi [128.214.205.14]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g4CKjOH09445 for ; Sun, 12 May 2002 22:45:24 +0200 (MET DST) Received: (from lealanko@localhost) by kruuna.Helsinki.FI (8.11.6/8.10.1) id g4CKjOi05794; Sun, 12 May 2002 23:45:24 +0300 (EEST) Date: Sun, 12 May 2002 23:45:23 +0300 From: Lauri Alanko To: caml-list@inria.fr Subject: [Caml-list] NULL as a caml value Message-ID: <20020512234522.A5687@kruuna.Helsinki.FI> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello. The docs weren't very clear on this, so I just wanted to check: is (value)NULL a legal caml value? Checking from the sources, it seems that the GC does leave alone all pointers that don't point to within the caml-managed heap. However, the docs state that only "memory allocated by malloc" can be turned directly into an abstract caml value. So may I rely on NULL working? It would ease dealing with many C interfaces. Lauri Alanko la@iki.fi ------------------- 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