Accessing class with module name as Java's

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 12 20:22:04 PST 2015


> What namespace? D has modules, unlike C++. In general it's a 
> bad idea to have inside a module a name (like a variable name 
> or struct name) equal to the module name, because it causes 
> confusion.

I am confused as well.

core.stdc.errno

@property int errno() { return getErrno(); }
@property int errno(int n) { return setErrno(n); }


More information about the Digitalmars-d-learn mailing list