Effective D book?
Peter Alexander
peter.alexander.au at gmail.com
Sun Jun 16 11:41:35 PDT 2013
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);
}
More information about the Digitalmars-d
mailing list