Idea: "Frozen" inner function

Michael Butscher mbutscher at gmx.de
Sun Nov 26 06:28:04 PST 2006


Frank Benoit (keinfarbton) wrote:

> This is the case for Java also. If you define a anonymous class in a
> method it can access the local variable and arguments of the surrounding
> method. The compiler forces them to be final.

My idea was inspired by this. As D has nothing like final, I thought a 
copy of the outer variables would do as well.



Michael



More information about the Digitalmars-d mailing list