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
Secrets of OCAML
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-01-13 (16:28)
From: David McClain <dmcclain@a...>
Subject: Secrets of OCAML
It may not seem obvious until you try to implement similar functionality in
a language of your own. But the need to prefix a label with the module name
derives from the simple fact that the module is the place where the label is
defined... After you realize that, it is a simple matter to create compound
names of any depth crossing any number of module boundaries in the process.
Unless a module is "Used" in the sense of importing all of its symbols into
your current module, you must refer via the definining module name. It
really is quite simple after all...

- DM