Implicit current-index variable, scoped inside for-loops

2006-08-28 Thread Carl Mäsak
Hey do you know what would be cool in perl 6 A special variable for when you do a for (@array) style loop it would always have the index of the array Discussed on #perl6: it's already quite easy in Perl 6 to loop with an explicit index: my @array = ; for @array.kv -> $i, $val { say "$i\t$val

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

2006-08-28 Thread audreyt
Author: audreyt Date: Mon Aug 28 07:34:29 2006 New Revision: 11527 Modified: doc/trunk/design/syn/S02.pod Log: * S02: minor grammar and syntax nit from p6l feedbacks. Modified: doc/trunk/design/syn/S02.pod == --- doc/

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

2006-08-28 Thread Markus Laire
On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: +Elsewhere it is equivalent to a parenthesisized list of strings: +C<< ('foo','bar') >>. Since parentheses are generally reserved just for +precedence grouping, they merely autointepolate in list context. Therefore + +@a = 1, < 2 3 >,

Re: clarifying the spec for 'ref'

2006-08-28 Thread Juerd
Richard Hainsworth skribis 2006-08-28 10:33 (+0400): > --- > | Class > A| > | > --

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

2006-08-28 Thread Smylers
[EMAIL PROTECTED] writes: > New Revision: 11504 >doc/trunk/design/syn/S02.pod > > +C<< ('foo','bar') >>. Since parentheses are generally reserved just for > +precedence grouping, they merely autointepolate in list context. Therefore Typo: "autointepolate". Smylers

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

2006-08-28 Thread audreyt
Author: audreyt Date: Mon Aug 28 00:11:57 2006 New Revision: 11509 Modified: doc/trunk/design/syn/S02.pod Log: * grammar nit, and clarify that it is the assign-to-scalar that Arrayify a list. Modified: doc/trunk/design/syn/S02.pod ==