[Issue 9947] reduce of an array of structs with an immutable field
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 31 06:17:21 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=9947
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #4 from monarchdodra at gmail.com 2014-03-31 06:17:15 PDT ---
Yes, I think this is invalid, because the documentation states:
//----
Then, for each element $(D x) in $(D range), $(D result = fun(result, x)) gets
evaluated.
//----
And here, the type is not assignable, even when unqualed.
That said, a recursive "divide and conquer" fold could support such a case. I'm
leaving this open as en ER.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list