Re: Array variables as formal parameters ???

2009-05-24 Thread John M. Dlugosz
Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: On May 23, 2009 11:26:16 pm John M. Dlugosz wrote: > From whence did it get its Item container? OK, my brain made a wrong turn some time on Tuesday. Let me review the basics. From S02: |$x| may be bound to any object, includi

r26929 - docs/Perl6/Spec

2009-05-24 Thread pugs-commits
Author: jdlugosz Date: 2009-05-25 06:10:06 +0200 (Mon, 25 May 2009) New Revision: 26929 Modified: docs/Perl6/Spec/S03-operators.pod Log: Code to Callable, clarify "Type" under smart matching (see Modified: docs/Perl6/Spec/S03-operators.po

Re: Array variables as formal parameters ???

2009-05-24 Thread Henry Baragar
On May 23, 2009 11:26:16 pm John M. Dlugosz wrote: > > From whence did it get its Item container? > > OK, my brain made a wrong turn some time on Tuesday. > > Let me review the basics. > > From S02: > |$x| may be bound to any object, including any object that can be bound > > to any other sigil.

Re: Array variables as formal parameters ???

2009-05-24 Thread John M. Dlugosz
Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: Good question, since Nil does Positional, as evidenced by rakudo: > say Nil ~~ Positional 1 Should report this as a bug? Henry At the very least, it is the most simple test case for Nil. Should be in the tes

r26928 - docs/Perl6/Spec

2009-05-24 Thread pugs-commits
Author: schwarzer Date: 2009-05-24 21:46:24 +0200 (Sun, 24 May 2009) New Revision: 26928 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S06-routines.pod docs/Perl6/Spec/S19-commandline.pod docs/Perl6/Spec/S28-special-names.pod Log: [Perl6/Spec] typos Modified: docs/Perl6/Spec/

Re: Array variables as formal parameters ???

2009-05-24 Thread Henry Baragar
On May 23, 2009 11:31:35 pm John M. Dlugosz wrote: > Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: > >>> > sub f2 (@y) {say @y.WHAT; say +...@y}; f2(Nil); > >>> > >>> Array() > >>> 1 > >> > >> Why doesn't +...@y produce 0, not 1? It's an empty list. > > > > From rakudo: > >