[Issue 10376] New: Glaring hole in const system
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 16 04:36:53 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10376
Summary: Glaring hole in const system
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2013-06-16 04:36:52 PDT ---
DMD 2.063:
class C{ int[] x=[1,2,3]; }
void main(){
auto c = new immutable(C)();
auto d = new C();
static assert(is(typeof(c.x[0])==immutable));
assert(c.x[0]==1);
d.x[0]=2;
assert(c.x[0]==2);
}
--
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