Subject RE: [IB-Architect] New API: Object Life Time
Author Bill Lancaster
At 10:25 AM 6/2/00 -0400, you wrote:
>At 01:20 AM 6/2/00 -0400, Claudio Valderrama C. wrote:
>>>
>>> Object life times are managed with addRef() and release(). When
>>> the use count (decremented by release()) goes to zero, the object
>>> joins the great bit bucket in the sky.
>>
>>
>> Seem fine and you can do whatever you want in the implementation. Trying to
>>avoid delete operator?
>>
>
>I've made all destructors protected to make explicit deletion
>illegal. Everything is now released.
>

Don't forget about the copy constructor and assignment operator. You may
want to make them "non-implemented" and private.

Bill

PS) I was scarred for life with my experience with refcounting.