GC, the simple solution

Frank Benoit keinfarbton at nospam.xyz
Mon Jun 5 01:06:23 PDT 2006


>
> If not more.  You then also need the incs synched with that, otherwise
> you could end up "ref++"ing in the middle of "free(ptr)".
> 
As allready pointed out by Lionello, if the counter goes zero there is
no other manipulator.

>>> 7) Fixing the compiler to hide all this stuff from the programmer will
>>> make it difficult to interface cleanly with C.
>> hm, ok. Here is some more manual work necessary.
>> If you give the last reference to a C lib, isn't this a problem for the
>> MS GC also?

MS=mark&sweep :)



More information about the Digitalmars-d mailing list