digitalmars.D.bugs - [Issue 2610] New: const/invariant(immutable) class don't have constructor
- d-bugmail puremagic.com Jan 23 2009
- d-bugmail puremagic.com May 18 2010
- d-bugmail puremagic.com May 18 2010
- d-bugmail puremagic.com May 18 2010
- d-bugmail puremagic.com May 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610 Summary: const/invariant(immutable) class don't have constructor Product: D Version: 2.023 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: rayerd.wiz gmail.comtype a.d
string s; this() {// error s = "hoge"; } }dmd a
--
Jan 23 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2610 Haruki Shigemori <rayerd.wiz gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610 nfxjfg gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nfxjfg gmail.com --- Comment #1 from nfxjfg gmail.com 2010-05-18 11:22:08 PDT --- You closed this bug as fixed, but what was the resolution? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #2 from bearophile_hugs eml.cc 2010-05-18 11:53:01 PDT --- This code compiles and runs fine on dmd v.2.046. immutable class A { string s; this() { s = "hoge"; } } void main() { A a = new A; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610 --- Comment #3 from Haruki Shigemori <rayerd.wiz gmail.com> 2010-05-18 19:59:09 PDT --- (In reply to comment #1)You closed this bug as fixed, but what was the resolution?
Sorry. I should have written a reason. (In reply to comment #2)This code compiles and runs fine on dmd v.2.046. immutable class A { string s; this() { s = "hoge"; } } void main() { A a = new A; }
Thanks! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 18 2010









d-bugmail puremagic.com 