Two other kinds of static
Peter Alexander
peter.alexander.au at gmail.com
Sat Jun 4 15:16:21 PDT 2011
On 4/06/11 8:35 PM, bearophile wrote:
> Mehrdad:
>
>> Why not just put your "static static" variable /outside/?
>
> Why don't you put your "static" variables outside? Because their name becomes visible by everyone else.
>
> Bye,
> bearophile
Well, only by everyone else in the module :)
I can see cases where you might want this "static static", but those
cases appear to be quite rare, and considering that's it's quite easy to
work around, I'm not sure it warrants adding extra complexities to the
language.
Just my 2 cents.
More information about the Digitalmars-d
mailing list