Effective D book?

Tyro[17] ridimz at yahoo.com
Sun Jun 16 02:50:24 PDT 2013


On 6/16/13 5:34 AM, Timon Gehr wrote:
> void main(){
>      void writeln(string) {}
>      writeln("foo");
>      {
>          import std.stdio;
>          writeln("bar");
>      }
> }

void main(){
     void writeln(string) {}
     writeln("foo");
     {
         import io = std.stdio;
         writeln("bar");
         io.writeln("baz");
     }
}

I see your point... but somehow I don't think it's that big of a 
problem. Should be fixed for those not willing to use the mechanism 
currently available to resolve the issue, but I wouldn't loose any sleep 
if it weren't.

-- 

Andrew Edwards
--------------------
http://www.akeron.co
auto getAddress() {
     string location = "@", period = ".";
     return ("info" ~ location ~ "afidem" ~ period ~ "org");
}


More information about the Digitalmars-d mailing list