[Issue 9630] DMD git: can't access array field properties from static method
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 1 22:09:17 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9630
--- Comment #10 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-03-02 08:09:16 EET ---
> auto x = typeof(arr.map!(x => x*2).filter!(x > 4).array[0]).max;
Well, I don't know about how this fits with backwards compatibility and such,
but the above line looks wrong to me as well, since it's passing a non-existent
variable (arr) to a function (map). This is as much "runtime evaluated" as
taking its index.
--
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