Thread overview |
---|
May 06, 2009 [Issue 2947] New: Array literal changeable if part of class. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2947 Summary: Array literal changeable if part of class. Product: D Version: 2.029 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: georg@iki.fi import std.stdio; class A { int[] c = [3,3]; } void main() { int[] a = [2,2]; int[] b = [2,2]; a[0] = 33; assert(b[0] == 2); // success A ca = new A; A cb = new A; ca.c[0] = 44; assert(cb.c[0] == 3); // failure: value is 44 } -- |
May 07, 2009 [Issue 2947] Array literal changeable if part of class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2947 ------- Comment #1 from gide@nwawudu.com 2009-05-07 03:32 ------- *** Bug 2948 has been marked as a duplicate of this bug. *** -- |
February 02, 2012 [Issue 2947] Array literal changeable if part of class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2947 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha@yahoo.com --- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-02 14:29:15 EST --- *** Issue 4378 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 20, 2013 [Issue 2947] Array literal changeable if part of class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2947 Nils <nilsbossung@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iteronvexor@gmail.com --- Comment #3 from Nils <nilsbossung@googlemail.com> 2013-06-20 07:39:15 PDT --- *** Issue 10423 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 21, 2013 [Issue 2947] Array literal changeable if part of class. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2947 --- Comment #4 from Caligo <iteronvexor@gmail.com> 2013-06-21 08:58:32 PDT --- How many years before this is fixed, god damn. -- 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