English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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
Hi,

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.

Bye,

Hendrik