import concerns (was Re: Historical language survey)

Derek Parnell derek at psych.ward
Sat Jul 8 19:58:17 PDT 2006


On Sun, 09 Jul 2006 11:59:37 +1000, Kirk McDonald  
<kirklin.mcdonald at gmail.com> wrote:


> I posted this proposal earlier, but I like it so much I'll repeat myself:
>
> import B with bar;
> bar(); // unambiguous
>
> The point is you can list multiple names from the module without  
> repeating the module name:
>
> import MyModule with foo, baz;
>
> And "with" is already a keyword.

So what? But if you did want to reuse the "with" keyword why not use it in  
the same manner...

  with MyModule import foo, baz;


-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list