In my function template example, I put the local in front of *inner for just that reason - to limit the scope of inner to the block in which it is defined for the purposes of both limiting access and improving garbage collection.
I appreciated the conversation all of these examples has created. I've learned a few things in the process. I thank all of you who have contributed this analysis.
In reply to Re^4: closures: anonymous subs vs function templates?
by 5haun
in thread closures: anonymous subs vs function templates?
by 5haun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |