Thread overview
Error message not helpful
Apr 05, 2005
Regan Heath
Apr 06, 2005
Regan Heath
Apr 06, 2005
Stewart Gordon
April 05, 2005
The error "cannot create instance of abstract class X" does not tell me what method is un-implemented.

Regan
April 05, 2005
"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;
}


April 06, 2005
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
April 06, 2005
Regan Heath wrote:
> The error "cannot create instance of abstract class X" does not tell me  what method is un-implemented.

Already reported:

http://www.digitalmars.com/drn-bin/wwwnews?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.