Given a TypeInfo_Class, instance a new object of its type
Adam D. Ruppe
destructionator at gmail.com
Mon Oct 26 22:28:21 UTC 2020
On Monday, 26 October 2020 at 21:57:18 UTC, Not A Rectangle wrote:
> Is this possible to do?
Only if you know the type ahead of time, then you can cast it.
Normally you'd probably just know an interface or base class it
implements then you can cast to that, with the exact derived type
being only known at runtime.
More information about the Digitalmars-d-learn
mailing list