static static
bearophile
bearophileHUGS at lycos.com
Thu Nov 12 04:53:30 PST 2009
Steven Schveighoffer:
> Doesn't static do that already? I mean keep y within the module
> namespace. Sure, it's visible to other functions in foo's module, but not
> the global namespace. Or does that not work in D...
I think that 'private' is able to keep a name private to a module... But I put lot of stuff in certain D modules, so I'd like to reduce the scope of the name to something smaller of a whole module. (Walter has shown how to use a struct for this).
Bye,
bearophile
More information about the Digitalmars-d
mailing list