www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - test1.d(60): cannot create instance of abstract class Vector

reply "Matthew Wilson" <dmd synesis.com.au> writes:
A clue'd be nice.
Jul 14 2004
parent reply "Matthew Wilson" <dmd synesis.com.au> writes:
"Matthew Wilson" <dmd synesis.com.au> wrote in message
news:cd4tu5$1hc5$1 digitaldaemon.com...
 A clue'd be nice.

Scratch that. I *must* have the name of the unimplemented method. I'm pretty sure I've precipitated a compiler error, since this code was working well in March. Now I'm compiling with 0.95, it's giving me that rather clueless response. I'm perfectly happy to have to hack a workaround, but I need somewhere to start.
Jul 14 2004
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Matthew Wilson wrote:

 "Matthew Wilson" <dmd synesis.com.au> wrote in message
 news:cd4tu5$1hc5$1 digitaldaemon.com...
 
 A clue'd be nice.

Scratch that.

No need to scratch anything. For the benefit of all of us, the compiler ought to indicate which method is unimplemented, causing the class to become abstract. Borland C++ manages it without any trouble. But to be honest, I don't see what was wrong with making D like Java in this respect - a class is abstract iff it is declared as abstract. Just looking at the docs, abstract doesn't seem to be explained at all! Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Jul 15 2004
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
 Just looking at the docs, abstract doesn't seem to be explained at all!

it isn't, as far as i can tell. and i can't find any reference to abstract classes, let alone an explanation of what the "abstract" keyword does. i'm happy that Matthew found a way to make classes abstract! i was beginning to wonder if it were possible..
Jul 15 2004