www.digitalmars.com         C & C++   DMDScript  

D - CONFUSING ERR MSG: constructor this (char[] msg) does not match argument

reply Russ Lewis <spamhole-2001-07-16 deming-os.org> writes:
DMD 0.68, RH Linux 9

What does this error message mean?  I can't even figure out which line 
caused it, so it's really hard to debug my code.  :(
Jul 26 2003
parent Russ Lewis <spamhole-2001-07-16 deming-os.org> writes:
Russ Lewis wrote:
 DMD 0.68, RH Linux 9
 
 What does this error message mean?  I can't even figure out which line 
 caused it, so it's really hard to debug my code.  :(

I traced down the error to this line of code: class StackAssertError : public Error {}; which doesn't work because Error has no default constructor. So the definition changed to class StackAssertError : public Error { public: this() { super("StackAssertError"); } }; I would still hope that the error message gets clearer sometime... :) Russ
Jul 27 2003