Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[pugs] @x[1 .. Inf] ok yet @x[1..Inf] fails

1 view
Skip to first unread message

Andrew Savige

unread,
May 22, 2005, 3:57:45 AM5/22/05
to perl6-c...@perl.org
While the expression:

@x[1 .. Inf];

is happily accepted by Pugs, this one:

@x[1..Inf];

fails with the message:

*** Error: No compatible subroutine found: "&.Inf"

I noticed this when revisiting the original Pugs golf examples.
If I was just playing golf, I would use:

@x[1...];

which does work, but thought I better report this change in Pugs
behaviour.

/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Autrijus Tang

unread,
May 22, 2005, 8:07:48 PM5/22/05
to Andrew Savige, perl6-c...@perl.org
On Sun, May 22, 2005 at 05:57:45PM +1000, Andrew Savige wrote:
> While the expression:
> @x[1 .. Inf];
> is happily accepted by Pugs, this one:
> @x[1..Inf];
> fails with the message:
> *** Error: No compatible subroutine found: "&.Inf"

Thanks, fixed now. :)

/Autrijus/

0 new messages