[Issue 18886] Explicitly invoking super.__ctor in a constructor does not count as calling a super constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 7 21:09:00 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18886

--- Comment #6 from Ethan Watson <gooberman at gmail.com> ---
The code I'm invoking in my current codebase extracts type data from the
template parameter for object management.

Another workaround would probably be to have a templated this( Type )( ref Type
val ) in the base class and then call super( this ) from the derived class.
Which feels as janky as it looks.

Supporting super!( Args )() would be far more preferable, won't even need to do
a __ctor hack then.

--


More information about the Digitalmars-d-bugs mailing list