Browse thread
Secrets of OCAML
- David McClain
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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