On Monday, 7 January 2013 at 22:14:46 UTC, Ali Çehreli wrote:
On 01/07/2013 01:57 PM, Phil Lavoie wrote:

> I meant scope objects work fine in most cases, but sometimes
its good to
> explicitly delete objects on the heap.

Usually, what is needed is to just finalize the object. The memory that it sits on should still be managed by the GC.

This is all fine when GC is precise. With current GC in 32 bits I'd rather have manual deallocation than leaks. This is actually what I successfully did in a photo editing app: using 'delete' for large chunks of data (uncompressed photos) and GC for the rest. This way everything worked smoothly.

Reply via email to