www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Error message not helpful

reply "Regan Heath" <regan netwin.co.nz> writes:
The error "cannot create instance of abstract class X" does not tell me  
what method is un-implemented.

Regan
Apr 05 2005
next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Regan Heath" <regan netwin.co.nz> wrote in message 
news:opsoq91ysi23k2f5 nrage.netwin.co.nz...
 The error "cannot create instance of abstract class X" does not tell me 
 what method is un-implemented.

I take it you mean something like this? class A { abstract void foo(); } void main() { A a=new A; }
Apr 05 2005
parent "Regan Heath" <regan netwin.co.nz> writes:
On Tue, 5 Apr 2005 15:54:36 -0400, Jarrett Billingsley <kb3ctd2 yahoo.com>  
wrote:
 "Regan Heath" <regan netwin.co.nz> wrote in message
 news:opsoq91ysi23k2f5 nrage.netwin.co.nz...
 The error "cannot create instance of abstract class X" does not tell me
 what method is un-implemented.

I take it you mean something like this? class A { abstract void foo(); } void main() { A a=new A; }

In my case I was extending a class with abstract methods. class A { abstract void foo(); } class B : A {} void main() { B b = new B(); } but it's the same thing. Regan
Apr 05 2005
prev sibling parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Regan Heath wrote:
 The error "cannot create instance of abstract class X" does not tell me  
 what method is un-implemented.

Already reported: digitalmars.D.bugs/1940 Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Apr 06 2005