nested functions and closures

Johannes Pfau nospam at example.com
Tue Feb 12 01:35:29 PST 2013


Am Mon, 11 Feb 2013 21:41:26 +0100
schrieb "Zach the Mystic" <reachBUTMINUSTHISzach at gOOGLYmail.com>:

> 
> I recently wrote an article partly on this topic which may be of 
> interest to you. Apologies if it is not. See part one: neutrons.
> 
> http://forum.dlang.org/thread/ririagrqecshjljcdubd@forum.dlang.org

Yes, that's basically the same question. I'm not really interested in
possible implementation details though, I'd just like to know why it
wasn't allowed to access outer variables of nested structs in the
first place.

But Steven Schveighoffer answer already covers that.


More information about the Digitalmars-d mailing list