Static on free functions
Adam D. Ruppe
destructionator at gmail.com
Mon Dec 7 17:07:20 UTC 2020
On Monday, 7 December 2020 at 17:01:45 UTC, Dave P. wrote:
> Does `static` on a free function definition do anything?
Nope, D allows a lot of useless attributes so it doesn't complain
if you do certain things out of habit (or it is just a lazy
implementation, I'm not sure which explanation applies here)
> static int foo(){
> return 3;
> }
>
> int foo(){
> return 3;
> }
but both the same.
More information about the Digitalmars-d-learn
mailing list