[Issue 1289] New: Class method without a function body should be abstract?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 24 04:58:55 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1289
Summary: Class method without a function body should be abstract?
Product: D
Version: 1.016
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: onlystupidspamhere at yahoo.se
The spec should state whether a method without a body is abstract or not. Of
course this also affects the behavior of compiler. For instance this fails when
linking:
class A { A f(); }
class B : A { B f() { return this; } }
void main() { B a = new B(); }
In some occasions similar code works, in others it doesn't.
--
More information about the Digitalmars-d-bugs
mailing list