Import concerns revisited

kris foo at bar.com
Sun Jul 9 11:00:03 PDT 2006


Dave wrote:
> That doesn't address the aliasing if I'm understanding correctly (what 
> if m3 is imported and has an 'abcd' and 'efgh' also)?

Dave; the other option proposed earlier (by Walter) was to extend the 
import syntax to hit top-level decls within a module:

# import lib.text.locale.Time;   // import Time only

Which can be extended in the following manner:

# import lib.text.locale.Time as myTime;

The potential drawback to this is that you basically get one import at a 
time. But that's fine if continuity is more important.

Each of these options are listed in the root of this thread-branch: 
"Import concerns revisited"




More information about the Digitalmars-d mailing list