Thread overview | |||||
---|---|---|---|---|---|
|
July 15, 2012 [Issue 8390] New: Refused array operation mutable[] += const[] | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8390 Summary: Refused array operation mutable[] += const[] Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2012-07-15 07:48:17 PDT --- See Issue 4662 for some context. void main() { const int[] a = new int[5]; int[] b = new int[5]; b[] += a[]; } Gives, DMD 2.060alpha: test.d(4): Error: slice cast(const(int)[])b[] is not mutable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 24, 2012 [Issue 8390] Refused array operation mutable[] += const[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=8390 --- Comment #1 from github-bugzilla@puremagic.com 2012-07-23 17:37:09 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2bfc8404b741c3ee1b0a20425880ce73de103983 fix Issue 8390 - Refused array operation mutable[] += const[] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 24, 2012 [Issue 8390] Refused array operation mutable[] += const[] | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=8390 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- 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