Why can't we put import in functions.
Yang Bo
pop.atry at gmail.com
Tue Oct 16 01:03:45 PDT 2007
Don Clugston 写道:
> Bill Baxter wrote:
>> Yang Bo wrote:
>>> We can put "using namesapce" in any place in C++. Why not do the same
>>> way in D?
>> Yes it is lacking. Definitely on my top ten features list for D.
>>
>> --bb
> It's particularly annoying that you can't use import in unittest{} blocks.
And, why do we need to write static import? Compiler should look for .d
files automaticly as Java.
More information about the Digitalmars-d
mailing list