Thread overview | |||||
---|---|---|---|---|---|
|
October 20, 2009 [Issue 3427] New: Chain doesn't work w/ arrays with immutable elements. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3427 Summary: Chain doesn't work w/ arrays with immutable elements. Product: D Version: 2.035 Platform: Other OS/Version: Windows Status: NEW Keywords: patch Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2009-10-20 14:03:13 PDT --- import std.range; void main() { string a = "foo"; string b = "bar"; auto myChain = chain(a, b); } C:\dmd2\windows\bin\..\..\src\phobos\std\range.d(937): Error: this._input._field_field_0[index] isn't mutable C:\dmd2\windows\bin\..\..\src\phobos\std\range.d(937): Error: this._input._field_field_1[index] isn't mutable The fix is to test for immutability in the static if statement on line 930 of std.range: static if (allSameType && is(typeof(_input.field[0][0] = ElementType.init))) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 20, 2009 [Issue 3427] Chain doesn't work w/ arrays with immutable elements. | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=3427 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |andrei@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 01, 2009 [Issue 3427] Chain doesn't work w/ arrays with immutable elements. | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=3427 David Simcha <dsimcha@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from David Simcha <dsimcha@yahoo.com> 2009-12-01 09:53:31 PST --- This should be fixed along with bug 3311 in SVN. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation