On Wednesday, 21 March 2018 at 19:21:15 UTC, 12345swordy wrote:
That seems to be it's own separate problem, as it involves generating dynamic types at run-time, which it needs run-time equivalent of attribute checking.
But @nogc is a compile time thing, meaning it cannot work here.
My example assumes that the classes created are static types not dynamic types. Besides I do not like implied conversions when it comes classes, as I believe it is a horrible idea.
All classes are dynamic types, this is their reason for existing!
