meaning import order?

Nick Sabalausky a at a.a
Mon Nov 14 10:40:32 PST 2011


"Alexey Veselovsky" <alexey.veselovsky at gmail.com> wrote in message 
news:mailman.928.1321256527.24802.digitalmars-d at puremagic.com...
> =====================
> $ cat main.d
> import std = std.stdio;
> import std.socket;
> import std.array;
> import std.getopt;
>
> void main() { std.writeln("bar");}
> ======================
>
> compiles ok. But:
>
> import std.socket;
> import std.array;
> import std.getopt;
> import std = std.stdio;
>
> void main() { std.writeln("bar");}
>
> $ dmd main.d
> main.d(6): Error: undefined identifier package std.writeln
>
> wtf?

Looks like a bug, you should file it at http://d.puremagic.com/issues/

It might have something to do with an existing bug with renamed imports.




More information about the Digitalmars-d mailing list