perl6-synopsis svn

2007-02-22 Thread Blair Sutton
Hi Larry Sorry if this is a silly question but I haven't been able to find the answer. Is the perl6-synopsis SVN repository publicly available or is it in the same repository as that of Parrot or Pugs? Thanks in advance Blair

Re: Negative array subscripts

2007-02-08 Thread Blair Sutton
Rafael Garcia-Suarez wrote: Smylers wrote in perl.perl6.language : Hmmm, a pragma's a bit heavyweight for this; how about being able to set this with a special global variable -- that sure sounds handy ... Actually, in perl 5, $[ *is* a pragma... :) A feature I have never felt the

Re: Negative array subscripts

2007-02-08 Thread Blair Sutton
Rafael Garcia-Suarez wrote: Smylers wrote in perl.perl6.language : Hmmm, a pragma's a bit heavyweight for this; how about being able to set this with a special global variable -- that sure sounds handy ... Actually, in perl 5, $[ *is* a pragma... :) A feature I have never felt the

Re: Negative array subscripts

2007-02-06 Thread Blair Sutton
David Green wrote: On 2/5/07, David Green wrote: Then we wouldn't need * to count backwards, although it's still useful to allow us to count past the end of an array. There are all sorts of variations on this scheme, such as whether * is the last element or the one after that, etc., or whether

Re: Smooth or Chunky?

2007-01-24 Thread Blair Sutton
Just some ideas for multidimensional map. map { $_, $_ * 10 }, 1..3 1,10, 2,20, 3,30 map { $_, $_ * 10 }, 1..3 [1,10], [2,20], [3,30] map { $_[0], $_[1] * 10 }, 1..3, 3..4 1,30, 2,40, 3,undef or better maybe 1,30, 2,40, 3 map { $_[0], $_[1] * 10 }, 1..3, 2..3, 3 op => [] [1,2,3], [2,3,undef

Re: RAII in Perl6/Parrot

2007-01-22 Thread Blair Sutton
T2: Remove from list T3: 'zippy' has 1 lives T3: Remove from list T1: 'zippy' has 0 lives T2: Exiting T3: Exiting T1: Exiting All threads joined Destroying 'biggles' with 0 lives Destroying 'zippy' with 0 lives [from the mad hatter: please ignore previous

Re: RAII in Perl6/Parrot

2007-01-22 Thread Blair Sutton
T1: Remove from list T2: 'zippy' has 2 lives T2: Remove from list T3: 'zippy' has 1 lives T3: Remove from list T1: 'zippy' has 0 lives T2: Exiting T3: Exiting T1: Exiting This shows the objects being DESTROYed before they should be, i.e. the last instance being destro

Re: RAII in Perl6/Parrot

2007-01-22 Thread Blair Sutton
if ([EMAIL PROTECTED]) { print "$name: Exiting\n"; $s->up; return; } my $o = pop @B; print "$name: '$o->{name}' has $o->{lives} lives\n"; if ($o->{lives} != 0) { print "$name: Rem

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 mu

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 Pyt