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
further name space depollution
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-15 (10:12)
From: Hendrik Tews <H.Tews@c...>
Subject: further name space depollution

since 3.08 global C identifiers are prefixed with "caml_" to
avoid name clashes with other libraries. However, this applies
only to function names and not to type names. Therefore it for
instance not possible to use the CAMLlocal macros in a method of
a class that declares a value field: one will get a clash with
the value type used inside CAMLlocal.

"value" seems to be a very common identifier and should be
renamed. But also the other publically visible types and macros
in mlvalues should get some caml prefix.