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

Reply via email to