[Issue 4277] delegate reference wrong scope var value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 28 20:38:27 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4277



--- Comment #7 from nfxjfg at gmail.com 2010-06-28 20:38:23 PDT ---
You're creating a delegate of a nested function, and then return it. This is
not allowed in D1. It's like writing "int* foo() { int x; return x; }" and then
expecting the returned value is valid.

Returning delegates to nested functions is allowed in D2, though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list