auto classes and finalizers
Don Clugston
dac at nospam.com.au
Mon Apr 10 04:30:46 PDT 2006
kris wrote:
> Mike Capp wrote:
>> In article <e1cq0t$1fm5$1 at digitaldaemon.com>, kris says...
>>
>>> I thought the idea was that classes with dtors are /intended/ to be
>>> explicitly cleaned up? That, implicit cleanup of resources (manana,
>>> some time) was actually a negative aspect? At least, that's what Mike
>>> was suggesting, and it seemed like a really good idea.
>>
>>
>> Um... can we avoid using "implicit" and "explicit" in this context?
>> "Implicit"
>> to me means "without writing any code", which covers both RAII and GC
>> cleanup
>> (if you're lucky). "Explicit" to me means manual calls to dtors or
>> dispose(),
>> which is the worst of all possible approaches.
>
> Yeah, I see the murk. What would you prefer to call them? The
> distinction being made there was whether the dtor was initiated via
> delete/auto, versus normal collection by the GC (where the latter was
> referred to as implicit).
deterministic and non-deterministic.
More information about the Digitalmars-d
mailing list