[Issue 9372] Class member with @disabled ctor makes class ctor unusable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 24 04:03:00 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9372
Maxim Fomin <maxim at maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim at maxim-fomin.ru
--- Comment #7 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-01-24 04:02:57 PST ---
The issue is debatable, but code below should be supported;
import std.stdio;
struct Trouble {
@disable this();
@disable this(this);
int dummy;
this(int x) {
dummy = x;
}
}
class Room {
Trouble t = Trouble(123); // this should work
this() {
//t = Trouble(123);
}
}
void main() {
auto r = new Room; // this is line 23
}
Current situation shows either limitation of new implementation (druntime) or
design.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list