How does List.map: { .say } work?

2009-11-02 Thread Moritz Lenz
Hi, the current spec doesn't allow immutable containers to call .map with a block that implicitly uses $_ as an implicit parameter. Here's why: S06 says > The C<$_> variable functions as a placeholder in a block without any > other placeholders or signature. Any bare block without placeholders

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
On Mon, Nov 2, 2009 at 9:53 AM, Moritz Lenz wrote: > Hi, > > the current spec doesn't allow immutable containers to call .map with a > block that implicitly uses $_ as an implicit parameter. > > Here's why: > > S06 says > >> The C<$_> variable functions as a placeholder in a block without any >> o

Re: How does List.map: { .say } work?

2009-11-02 Thread Carl Mäsak
Solomon (>), Moritz (>>): >> the current spec doesn't allow immutable containers to call .map with a >> block that implicitly uses $_ as an implicit parameter. >> >> Here's why: >> >> S06 says >> >>> The C<$_> variable functions as a placeholder in a block without any >>> other placeholders or sign

r28973 - docs/Perl6/Spec

2009-11-02 Thread pugs-commits
Author: lwall Date: 2009-11-02 17:31:00 +0100 (Mon, 02 Nov 2009) New Revision: 28973 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] correct $_ placeholder binding from "rw" to "ref", moritz++ Modified: docs/Perl6/Spec/S06-routines.pod ===

r28974 - docs/Perl6/Spec

2009-11-02 Thread pugs-commits
Author: lwall Date: 2009-11-02 17:41:09 +0100 (Mon, 02 Nov 2009) New Revision: 28974 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] clear up definition of 'is ref' Modified: docs/Perl6/Spec/S06-routines.pod === --- docs/Pe

r28975 - docs/Perl6/Spec

2009-11-02 Thread pugs-commits
Author: lwall Date: 2009-11-02 19:08:20 +0100 (Mon, 02 Nov 2009) New Revision: 28975 Modified: docs/Perl6/Spec/S10-packages.pod Log: [S10] install note about rapid fossilization of package CANDO section Modified: docs/Perl6/Spec/S10-packages.pod ===

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
On Mon, Nov 2, 2009 at 10:21 AM, Carl Mäsak wrote: > Solomon (>), Moritz (>>): >>> the current spec doesn't allow immutable containers to call .map with a >>> block that implicitly uses $_ as an implicit parameter. >>> >>> Here's why: >>> >>> S06 says >>> The C<$_> variable functions as a pla

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
On Mon, Nov 2, 2009 at 2:03 PM, Solomon Foster wrote: > On Mon, Nov 2, 2009 at 10:21 AM, Carl Mäsak wrote: >> Solomon (>), Moritz (>>): the current spec doesn't allow immutable containers to call .map with a block that implicitly uses $_ as an implicit parameter. Here's why: >

Re: How does List.map: { .say } work?

2009-11-02 Thread Raphael Descamps
Am Montag, den 02.11.2009, 14:33 -0500 schrieb Solomon Foster: > On Mon, Nov 2, 2009 at 2:03 PM, Solomon Foster wrote: > > On Mon, Nov 2, 2009 at 10:21 AM, Carl Mäsak wrote: > >> Solomon (>), Moritz (>>): > the current spec doesn't allow immutable containers to call .map with a > block