Re: named subroutine parameters

2005-03-15 Thread Nathan Gray
Thank you Luke and Autrijus, and Jesse Vincent for the test case. -kolibrie On Mon, Mar 14, 2005 at 11:29:58PM +0800, Autrijus Tang wrote: > On Mon, Mar 14, 2005 at 10:15:25AM -0500, Nathan Gray wrote: > > But unfortunately, this did not: > > pugs> sub formalize($text, +$case) { say $text } f

Re: named subroutine parameters

2005-03-14 Thread Autrijus Tang
On Mon, Mar 14, 2005 at 10:15:25AM -0500, Nathan Gray wrote: > But unfortunately, this did not: > pugs> sub formalize($text, +$case) { say $text } formalize('hello', > case=>'upper'); > *** Error: > unexpected "f" > expecting term, ";" or end of input > at at line 1, column 44 Aye, b

Re: named subroutine parameters

2005-03-14 Thread Luke Palmer
Nathan Gray writes: > I tried using named parameters (S06) and found this to work: > > pugs> sub formalize($text, +$case) { say $text } formalize('hello'); > hello > bool::true > > But unfortunately, this did not: > > pugs> sub formalize($text, +$case) { say $text } formalize('hello', >

named subroutine parameters

2005-03-14 Thread Nathan Gray
I tried using named parameters (S06) and found this to work: pugs> sub formalize($text, +$case) { say $text } formalize('hello'); hello bool::true But unfortunately, this did not: pugs> sub formalize($text, +$case) { say $text } formalize('hello', case=>'upper'); *** Error: unexpect