Re: how much detail can I get from caller.want?

2008-08-31 Thread Xiao Yafeng
On Sat, Aug 30, 2008 at 4:22 AM, Dave Whipp [EMAIL PROTECTED] wrote: Lets say I want to find the 5th smallest element in an array. I might write: @array.sort.[4]; How does the implementation of the sort function know that I just want to 5th item (and thus choose an appropriate

S*.pod edits submissions

2008-08-31 Thread John M. Dlugosz
I have changed files at http://www.dlugosz.com/Perl6/offerings/ waiting for someone in authority to merge.

Regex repetition controlled by characters

2008-08-31 Thread Stephen Simmons
In S05, I found this regarding the generalized repetition specifier: alt ** '|'# repetition controlled by presence of character I tried it out with rule thislist { alpha ** '|' }; and got (with Rakudo): perl6regex parse error: Error in closure quantifier at offset 28, found '''

Re: Regex repetition controlled by characters

2008-08-31 Thread Moritz Lenz
Stephen Simmons wrote: In S05, I found this regarding the generalized repetition specifier: alt ** '|'# repetition controlled by presence of character I tried it out with rule thislist { alpha ** '|' }; and got (with Rakudo): perl6regex parse error: Error in closure

Re: how much detail can I get from caller.want?

2008-08-31 Thread dpuu
On Aug 30, 8:47 am, [EMAIL PROTECTED] (John M. Dlugosz) wrote: Have the sort function simply return a lazy list object. When the [4] is called on that object, it knows to do as much work as needed, and can leave the rest as lazy. That may be half the answer, but simply making the decision

Exception Basics

2008-08-31 Thread John M. Dlugosz
In S04, the Exceptions section mentions that $! contains multiple exceptions. So what type is it? Why isn't it @! ? I says that they are thrown as a single new exception. So what type is that new exception? A multi-exception of some kind? How do you get multiple pending exceptions in the

What happened to err operator?

2008-08-31 Thread John M. Dlugosz
Has the err operator, as a low-precidence version of //, been removed? It's not mentioned in S03, and the semantics of orelse is different. Is orelse supposed to be a direct replacement, meaning if you ignore the parameter thing then it doesn't change anything?

Re: how much detail can I get from caller.want?

2008-08-31 Thread John M. Dlugosz
dpuu dave-at-whipp.name |Perl 6| wrote: On Aug 30, 8:47 am, [EMAIL PROTECTED] (John M. Dlugosz) wrote: Have the sort function simply return a lazy list object. When the [4] is called on that object, it knows to do as much work as needed, and can leave the rest as lazy. That may be