Checking a (base) type and accepting any specialization?
Andy Valencia
dont at spam.me
Sun Jun 8 22:37:23 UTC 2025
On Sunday, 8 June 2025 at 14:29:27 UTC, mitgedanken wrote:
> I understand why the given types are not compatible.
> But not how I can store any base type regardless its
> specialization.
I know OO is mostly looked down upon, but if you have a common
root class and each subclass specializes, you can have a variable
of the root class' type and it'll store pointers to either.
Andy
More information about the Digitalmars-d-learn
mailing list