On 08/28/2012 11:59 AM, Michael Fuchs wrote:

Ok, but if there are reef-counted objects what is the point in not using
them ?


I would not use them, because of my experiences with the garbage collector of .NET. After using it, I know that I should decide when a object has to be destroyed.


I don't understand. While the visible effect is the same (no Free any more), I understand that the concept of garbage collecting ("at certain times, take a look what is not used any more") and fpc's reference counting (delete unused stuff at once when it is clear that nobody uses it any more) is completely different.

I understand that the reference counting works perfectly with strings, so I don't see why it should not work with Objects (even if additional issues might need to be taken into account and it might be appropriate to allow for not reference counted objects, optionally).

-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to