On Tuesday, 13 May 2014 at 14:46:18 UTC, Kagamin wrote:
On Tuesday, 13 May 2014 at 13:21:04 UTC, Jacob Carlborg wrote:
The GC will only call destructors when it deletes an object, i.e. when it runs a collection. There's no guarantee that a collection will happen.

Ah, so when GC collects an object, it calls destructor. It sounded as if it's not guaranteed at all.

Currently it isn't, because the GC sometimes lacks type information, e.g. for dynamic arrays.

Reply via email to