`static` on module-level functions
    IchorDev 
    zxinsworld at gmail.com
       
    Fri Jul  7 10:38:20 UTC 2023
    
    
  
On Friday, 7 July 2023 at 10:01:41 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> Static does do something on functions when they are not 
> free-functions.
>
> https://dlang.org/spec/attribute.html#static
>
Well yes, I even mentioned that in the OP. It's just that I'd 
expect using `static` "incorrectly" to cause an error, like 
`const` does. Instead, marking something as `static` *actually* 
does nothing, and nothing really tells you, so it causes a bit of 
a placebo effect.
> https://issues.dlang.org/show_bug.cgi?id=24038
Thank you! :)
    
    
More information about the Digitalmars-d-learn
mailing list