develooper Front page | perl.perl6.language | Postings from October 2005

Re: +$arg changed to :$arg

Thread Previous | Thread Next
From:
Larry Wall
Date:
October 26, 2005 07:10
Subject:
Re: +$arg changed to :$arg
Message ID:
20051026141007.GB25230@wall.org
On Wed, Oct 26, 2005 at 10:06:25AM -0400, Matt Fowles wrote:
: Larry~
: 
: On 10/26/05, Larry Wall <larry@wall.org> wrote:
: > So we'd get:
: >
: >     :@array[42] 42 => @array[1]
: 
: Do you mean C< :@array[42] 42 => @array[42] >?

Yes.  I was changing it because 42 : 1 :: foo : a, but I flubbed.

: > The last three forms are more arguable than the first three, especially
: > since they probably aren't valid formal parameters.  We kind of need
: > a subscript modifier instead:
: >
: >     @array:[42] 42 => @array[1]
: 
: Same question.

Same answer.

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About