Object.dup?

Adam D Ruppe destructionator at gmail.com
Mon Aug 30 20:32:28 UTC 2021


On Monday, 30 August 2021 at 20:21:38 UTC, Per Nordlöw wrote:
> Why doesn't `Object` have an auto-defined `.dup` property?

I don't think it could. What if you have a child class with a 
delegate that points to one of its own methods?

You can define one yourself of course with overrides in child 
classes to update those kinds of things. But doing it 
automatically is tricky.



More information about the Digitalmars-d-learn mailing list