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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo