About Go, D module naming
Phil Lavoie
maidenphil at hotmail.com
Sun Dec 23 13:12:17 PST 2012
> private is _always_ module scope.
Ooops I meant private functions inside a module. I was wondering
if that would be allowed:
module a;
public auto aFunc( T )( T t ) { cantSeeMe( t ); }
private auto canSeeMe( SomeType t ) { ... }
module b;
import a;
alias a.canSeeMe canSeeMe
public auto canSeeMe( SomeOtherType t ) { ... } //Can this be
called by afunc?
module c;
void main( ... ) {
...
SomeOtherType t;
t.aFunc();
...
}
If so, I am guessing it is made possible by said particularity?
Phil
More information about the Digitalmars-d
mailing list