Import concerns revisited

Paolo Invernizzi arathorn at NOSPAM_fastwebnet.it
Tue Jul 11 00:17:17 PDT 2006


Walter Bright wrote:

> Import does not import names into the current namespace. It imports them 
> into a secondary namespace, that is looked in *only* if the name isn't 
> found in the current namespace. Alias can then cherry-pick specific 
> symbols out of that secondary namespace and put them in the current 
> namespace, possibly renaming them along the way.

This is the best explanation of import I've seen so far! It made the 
current import semantic crystal clear. I suggest to cut-n-past it in the 
documentation.

---
Paolo



More information about the Digitalmars-d mailing list