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); }