Disable GC entirely

Peter Alexander peter.alexander.au at gmail.com
Sun Apr 7 15:59:36 PDT 2013


On Sunday, 7 April 2013 at 22:33:04 UTC, Paulo Pinto wrote:
> Am 08.04.2013 00:27, schrieb Timon Gehr:
>> Every time a variable is reassigned, its old value is 
>> destroyed.
>
> I do have functional and logic programming background and still 
> fail to see how that is manual memory management.

Mutable state is essentially an optimisation that reuses the same 
memory for a new value (as opposed to heap allocating the new 
value). In that sense, mutable state is manual memory management 
because you have to manage what has access to that memory.


More information about the Digitalmars-d mailing list