Can we just have struct inheritence already?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jun 13 06:36:49 UTC 2019
On 6/11/19 7:45 PM, Manu wrote:
> On Tue, Jun 11, 2019 at 12:35 PM Exil via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> Kind of curious, what do you use a base class for that has no
>> members, is a size of zero, and also has no vtable or virtual
>> functions?
>
> Metaprogramming; it's a template argument.
Subtyping is not needed for metaprogramming. (C++'s awkward way of doing
it overuses it.)
More information about the Digitalmars-d
mailing list