D's constructor call hierarchy (Was: Re: [Bug 91] Inherited classes require base class to have a default constructor.)

Sean Kelly sean at f4.ca
Sun Apr 9 11:08:54 PDT 2006


Søren J. Løvborg wrote:
> 
> (On an unrelated note, shouldn't Exception also support exception chaining?)

More than that, IMO.  Here is the Exception declaration for Ares (note 
that Error has been removed completely):

class Exception : Object
{
     char[]      msg;
     char[]      file;
     size_t      line;
     Exception   next;

     this(char[] msg, Exception next = null);
     this(char[] msg, char[] file, size_t line, Exception next = null);
     char[] toString();
}



More information about the Digitalmars-d mailing list