Template this parameter in constructor

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 21 14:39:09 PST 2016


On 02/21/2016 01:48 PM, Steven Schveighoffer wrote:

 > So it follows that the template this type will be the next derived
 > constructor (or the type itself if that is the most derived type),

I've just checked: Adding a C4 to the interitance chain (and 
constructing a C4) confirms that to be the case:

C4 constructor: C4
C3 constructor: C4
C2 constructor: C3
C1 constructor: C2

Ali



More information about the Digitalmars-d-learn mailing list