meaning import order?

Alexey Veselovsky alexey.veselovsky at gmail.com
Sun Nov 13 23:41:57 PST 2011


=====================
$ 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?


More information about the Digitalmars-d mailing list