Function with same name as a module name

Jeremy DeHaan via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 1 09:10:35 PST 2014


I don't think you can specify look ups with the name of the 
module in the same module like you can with imported ones. If you 
want to specify that it is a variable in module scope, use the 
module scope operator.

writeln(.a); // the leading '.' specifies module scope


More information about the Digitalmars-d mailing list