Dear all
I hope I am sending this to the correct place.
I regularly use the RAII idiom in Perl 5 and C++ to automatically clean up resources during object destruction. I recently read a mail thread "Is RAII possible in Python?" at http://www.thescripts.com/forum/thread25072.html and "Perl vs Python - GC and Reference Counting" at http://discuss.joelonsoftware.com/default.asp?joel.3.323675.32. The above threads suggests that Python cannot do RAII since its garbage collection does not offer deterministic finalization. I understand that Parrot will not use reference counting for garbage collection and so may suffer from the same problem. Are my fears warranted?
Kind regards
Blair

Reply via email to