On Sunday, 16 June 2013 at 16:48:46 UTC, Walter Bright wrote:
On 6/16/2013 2:06 AM, Peter Alexander wrote:
It std.stdio contains a symbol called "message" then this will not print "Hello,
world".

Yes, it will. Current scope overrides imported scope.

Sorry, bad example:

string message = "Hello, world!";
void main()
{
    import std.stdio;
    writeln(message);
}

Reply via email to