RAII in Perl6/Parrot

2006-12-18 Thread Blair Sutton
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

Re: RAII in Perl6/Parrot

2006-12-18 Thread Larry Wall
On Mon, Dec 18, 2006 at 12:02:35PM +, Blair Sutton wrote: : 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?

Re: RAII in Perl6/Parrot

2006-12-18 Thread Blair Sutton
Larry Wall wrote: ... (Perl 6 provides several ways that are much handier than try/finally, and just about as handy as RAII.) But baking such handicaps into every object merely guarantees it will not scale well in the real world. Thanks for the information. I

Re: RAII in Perl6/Parrot

2006-12-18 Thread Luke Palmer
On 12/18/06, Blair Sutton [EMAIL PROTECTED] wrote: I agree entirely that not all objects need this capability but some certainly do. That is, the capability to execute code once every reference of an object has been removed. Could you point to, or give an example of the Perl 6 way for doing

[svn:perl6-synopsis] r13493 - doc/trunk/design/syn

2006-12-18 Thread larry
Author: larry Date: Mon Dec 18 17:50:54 2006 New Revision: 13493 Modified: doc/trunk/design/syn/S06.pod Log: Nitty infrastructural routines probably shouldn't rely on multiple dispatch or optional args, so we now have .call, .callc and .callv forms. Also added .goto variants for tail call