Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 24, 2009 [Issue 2610] New: const/invariant(immutable) class don't have constructor | ||||
---|---|---|---|---|
| ||||
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.com >type a.d immutable class A { string s; this() {// error s = "hoge"; } } >dmd a Error: cannot implicitly convert expression (this) of type immutable(A) to a.A -- |
May 18, 2010 [Issue 2610] const/invariant(immutable) class don't have constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 [Issue 2610] const/invariant(immutable) class don't have constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 [Issue 2610] const/invariant(immutable) class don't have constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 19, 2010 [Issue 2610] const/invariant(immutable) class don't have constructor | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation