Import concerns revisited

Dave Dave_member at pathlink.com
Sun Jul 9 11:17:45 PDT 2006


kris wrote:
> 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.
> 

I did not realize the 'one import per line' limitation and I happen to 
like being able to comma-separate imports. Hmmm.

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



More information about the Digitalmars-d mailing list