Effective D book?

Timon Gehr timon.gehr at gmx.ch
Sun Jun 16 03:07:14 PDT 2013


On 06/16/2013 11:50 AM, Tyro[17] wrote:
> 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.

Well, it does not have to be in order to get fixed. The D module system 
otherwise avoids this kind of issue.

> 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.
>

There is no mechanism in place that reliably avoids silent breakage.


More information about the Digitalmars-d mailing list