July 25, 2007 [Issue 1376] New: 2.003 const object within class | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1376 Summary: 2.003 const object within class Product: D Version: 2.002 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: Daniel919@web.de class A { } class B { //A a; // [OK] //const A a; // Error: this.a is not mutable [OK] //final const(A) a; // [OK] const(A) a; // Error: cannot modify const/invariant this.a [should work] this(A a) { this.a = a; } } -- |
June 24, 2008 [Issue 1376] 2.003 const object within class | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1376 clugdbug@yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #1 from clugdbug@yahoo.com.au 2008-06-24 02:06 ------- Works in DMD2.015 -- |
Copyright © 1999-2021 by the D Language Foundation