import concerns (was Re: Historical language survey)

Derek Parnell derek at psych.ward
Sat Jul 8 18:40:25 PDT 2006


On Sun, 09 Jul 2006 10:54:03 +1000, Walter Bright  
<newshound at digitalmars.com> wrote:


> Alias also works fine for making substitutes for long, awkward names:
>
> import x.y.mod;
> alias x.y.mod t;
>
> x.y.mod.foo();	// works
> t.foo();	// also works

Why not join the two ...

   import x.y.mod alias t;

   t.foo();

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list