import concerns (was Re: Historical language survey)

Ameer Armaly ameer_armaly at hotmail.com
Sat Jul 8 22:04:38 PDT 2006


"Derek Parnell" <derek at psych.ward> wrote in message 
news:op.tceexnbq6b8z09 at ginger.vic.bigpond.net.au...
> 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();
>
Good idea.  That way the aliases are right where you can see them as opposed 
to god knows where.

> -- 
> Derek Parnell
> Melbourne, Australia 





More information about the Digitalmars-d mailing list