Re: Magic blocks (was: Compile-time undefined sub detection)

2004-03-09 Thread Joe Gottman

- Original Message - 
From: "Larry Wall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 10:39 PM
Subject: Re: Magic blocks (was: Compile-time undefined sub detection)


> Oh, I accidentally left NEXT out of my canonical list.  We do need to
> have the equivalent to Perl 5's "continue".
>


   Will there be a corresponding 'will next' property on variables?  If so,
then this could be a very nice way to solve the problem of how to access the
'prior' element in a for loop:

 for @array -> $current
 {
state $prior will next {$prior := $current} will leave {$prior :=
undef};
...
 }

   $prior is a state variable so that it retains its value between
iterations of the loop.  The 'will next' property binds $prior to $current
just before the loop binds $current to the next element of @array; the
result is that in every iteration of the loop after the first $prior is
bound to the same element of  @array that $current was bound to in the
previous iteration.  The 'will leave' property ensures that we don't keep a
reference to an element of @array after we leave the loop; it also ensures
that $prior has the correct value of undef() when we start the loop the next
time.

Joe Gottman




Re: This week's summary

2004-03-09 Thread Jerome Quelin
The Perl 6 Summarizer wrote:
> Parrotbug reaches 0.0.1
> Jerome Quelin responded to Dan's otherwise ignored request for a
> parrot equivalent of perlbug when he offered an implementation of
> parrotbug for everyone's perusal, but didn't go so far to add it to
> the distribution. I don't think it's been checked into the repository
> yet, but it'll probably go in tools/dev/ when it does.
> Later in the week, he actually got it working, sending mail to
> the appropriate mailing lists. With any luck the mailing lists
> themselves will be up and running by the time you read this.

Some notes:
 - I've bumped up the version and we're now at 0.2.1 (I like to increase 
version numbers, it make me feel like work is going on fast :-) )
 - following an irc discussion with melvin and dan, I've checked in 
parrotbug in parrot's root (and forgot to update MANIFEST - sorry 
again, Jens!)

Thx for the summaries,
Jerome
-- 
[EMAIL PROTECTED]