[Issue 8726] About immutable and const constructors

2013-11-24 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8726 yebblies changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8726] About immutable and const constructors

2013-04-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8726 --- Comment #1 from Kenji Hara 2013-04-26 00:15:48 PDT --- In 2.063, qualified constructor will be supported properly. This code would work in 2.063. class A { int x; this() immutable { x = 42; } this() { x = 13; } } clas

[Issue 8726] New: About immutable and const constructors

2012-09-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8726 Summary: About immutable and const constructors Product: D Version: D2 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component

Re: About immutable and const constructors

2012-09-25 Thread Maxim Fomin
Ask in D.learn or in other forums. This forum is only a mirror of discussing issues from D bugzilla which is mistakenly opened for posting.

About immutable and const constructors

2012-09-25 Thread FreeSlave
Hello to all. I want to discuss immutable and const constructors. For a start let's write the simple class with two constructors: class A { int x; this() immutable { x = 42; } this() { x = 13; } } Well, dmd passes this code, but what if we want to cre