On 4/30/14, 6:51 PM, Andrei Alexandrescu wrote:
On 4/30/14, 6:04 PM, Steven Schveighoffer wrote:
destructors are for cleaning up non-GC resources. File handles, malloc'd
memory, etc. I don't see why these need to be eliminated.

Virtually all GCs are known to be horrible at managing scarce resources
(including memory itself).

Here the paren means "... when memory is scarce". GCs work well only in 3x+ the memory needed. -- Andrei

Reply via email to