https://d.puremagic.com/issues/show_bug.cgi?id=8726
yebblies changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
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
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
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.
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