Proper desctructor for an class containing dynamic array of objects

kinke noone at nowhere.com
Thu Jun 13 18:51:26 UTC 2019


On Thursday, 13 June 2019 at 16:08:52 UTC, Mike wrote:
> or nothing of that at all because the garbage collecter 
> collects it, if the reference to Foo is set to null?

That. [The init loop can be shortened to `foreach (ref b; array) 
b = new Block();`.]


More information about the Digitalmars-d-learn mailing list