Why can't we put import in functions.

Don Clugston dac at nospam.com.au
Mon Oct 15 23:23:10 PDT 2007


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.



More information about the Digitalmars-d mailing list