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] NULL as a caml value
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lauri Alanko <la@i...>
Subject: [Caml-list] NULL as a caml value

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
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: