The One-Letter Nested Function - a sample article for some kind of
bearophile
bearophileHUGS at lycos.com
Sat Mar 10 04:35:14 PST 2012
F i L:
> I sorta figured D would implicitly attribute "static" to nested
> functions if the function didn't use any variables outside it's
> scope. Is that not so?
I don't think DMD does that. Before assuming DMD performs one optimization, go to read some of the asm it produces.
> Why are you saying it's a good idea to use "static" exactly?
Some answers here:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=160469
Bye,
bearophile
More information about the Digitalmars-d
mailing list