Static function at module level

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 17 23:46:02 PDT 2014


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


More information about the Digitalmars-d-learn mailing list