Class templates deriving from base class

Michael Mittner m.mittner at shebang.at
Thu Nov 26 13:34:46 PST 2009


Ary Borenszweig wrote:

> Hi Mike,
> 
> Why do you mean with "doesn't work"? If I define class Mars {} and
> compile your program it gives no error. Can you show the error the
> compiler is giving you? (you normally past the compiler output if a
> program doesn't compile so that others can help you faster... but in
> case it compiles, weird :-P)

Further investigation indicates that I have stumbled upon this bug:

http://d.puremagic.com/issues/show_bug.cgi?id=1538

Which seems to have been fixed in 1.047 or so, but I'm using 1.041 (the one 
that came with Tango) and I'm too lazy to update now (actually I'm not, but 
I fear this will be half an eternity of trial-and-error to get that build 
environment updated on both Linux and Windows - I'll rather wait for the 
next bundle from the Tango devs).

Thanks for confirming that it should actually work!

-Mike


More information about the Digitalmars-d-learn mailing list