Effects of having multiple TypeInfo with the same type name and the future of Object.factory

Adam D Ruppe destructionator at gmail.com
Tue Nov 23 16:23:54 UTC 2021


On Monday, 22 November 2021 at 09:42:17 UTC, Ahmet Sait wrote:
> What do you think about Object.factory?

Just remove it, this thing is a drain on D.

If you need a runtime factory, it is trivial to register one with 
reflection. We should probably do a `core.factory` so these 
things can be centrally registered and provide the helper mixins 
so you can do custom ones too. Would be far more useful than 
Object.factory.


More information about the Digitalmars-d mailing list