The Right Approach to Exceptions
entheh at cantab.net
Sun Feb 19 04:35:37 PST 2012
On 19/02/2012 02:19, Timon Gehr wrote:
> On 02/19/2012 02:23 AM, Jonathan M Davis wrote:
>> One potential issue though is that not all base classes necessarily
>> share the
>> same constructors. Which ones would be grabbed? The ones from the
>> base class? All of them? Only the ones common to all?
> There is only one base class. Inheriting constructors from anywhere
> further up the hierarchy cannot work, because then the base class cannot
> be constructed.
To phrase it another way, you could say that the direct base class has
already decided which of ITS base class's constructors to wrap and
expose. The direct base class's decision is final, so the class
extending it further can only base its constructors on that.
More information about the Digitalmars-d