Andrei Alexandrescu wrote:
> Rainer Deyke wrote:
>> If the array is a reference type, the array dies when the garbage
>> collector decides to run sometime after all live references to the array
>> have died, so RAII is not possible.
> 
> RAII can be implemented even with reference semantics. The mechanics
> would involve reference counting.

Granted, although reference counting comes with its own set of issues.


-- 
Rainer Deyke - rain...@eldwood.com

Reply via email to