private module stuff
bearophile
bearophileHUGS at lycos.com
Sun May 8 04:47:11 PDT 2011
Jonathan M Davis:
> They're private _access_ but still visible.
In my opinion this is not good, it looks like a messy special case.
> I believe that it's necessary for stuff like
> where various functions in std.algorithm return auto and return a private
> struct which you cannot construct yourself.
Do you mean something like this? This returns a struct defined inside, but it's not a private definition.
auto foo() {
struct Bar {}
return Bar();
}
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list