Constructor Inheritance
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 20 20:26:49 PDT 2016
On Tuesday, 21 June 2016 at 03:06:22 UTC, H. S. Teoh wrote:
> On Tue, Jun 21, 2016 at 02:48:39AM +0000, ketmar via
> Digitalmars-d-learn wrote:
>> no and no. howewer, creating template mixin with default ctors
>> may spare you of some typing.
>
> I think Phobos has an AutoImplement template that might do this
> for you. Maybe take a look in std.typecons or std.meta (or
> wherever they shove those things these days)?
>
>
> T
I was going to say that this is painful compared to Java or C++,
but it looks like it's been too long since I've used those
languages as well; neither of them allow constructor inheritance
(but C++ has a syntax for doing it explicitly).
More information about the Digitalmars-d-learn
mailing list