Static function at module level
Phil Lavoie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 18 08:14:37 PDT 2014
On Monday, 18 August 2014 at 06:46:03 UTC, bearophile wrote:
> ketmar:
>
>> other function declarations (methods, nested functions) accepts
>> 'static', so why free functions shouldn't?
>
> For various reasons, one of them is that accepting useless code
> confuses newbies and doesn't allow them to build a correct
> model of the D semantics in their head.
>
> Bye,
> bearophile
Agreed. I was misled for a minute. I don't think it should
compile.
More information about the Digitalmars-d-learn
mailing list