Automatic method overriding in sub-classes
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 29 11:54:01 PDT 2015
On Thursday, 29 October 2015 at 17:32:22 UTC, Daniel N wrote:
> On Thursday, 29 October 2015 at 13:54:17 UTC, bitwise wrote:
>> [...]
>
> Just sprinkle some D magic ontop.. voilĂ DRTP is born ;)
>
> template Dynamic(T)
> {
> static if(is(T == U!V, alias U, V))
> alias Dynamic = Dynamic!V;
> else
> alias Dynamic = T;
> }
>
> [...]
No.
More information about the Digitalmars-d
mailing list