[Issue 3995] Can't access array/AA from function literal defined inside the array/AA's initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 14 21:42:11 PST 2012


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #3 from yebblies <yebblies at gmail.com> 2012-02-15 16:42:09 EST ---
I think this is invalid, letting the initializer reference the variable is a
real pain in c++, and was intentionally disallowed in D.

While it can be useful in some cases (when used carefully) I doubt it's worth
adding (for this case or in general), especially when there's such a trivial
workaround.

Nick, please reopen if you disagree.

-- 
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