[perl #76842] my @foo = 1..* @foo.max doesn't finish

2010-07-30 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #76842] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76842 twitterbugged @ http://twitter.com/mfollett/status/19919694472 : - Interesting

Re: [perl #76842] my @foo = 1..* @foo.max doesn't finish

2010-07-30 Thread Mark J. Reed
What is assigning a Range to an array supposed to do? Give you an array of one item which is a Range? Convert to a series? On Friday, July 30, 2010, Will Coleda perl6-bugs-follo...@perl.org wrote: # New Ticket Created by  Will Coleda # Please include the string:  [perl #76842] # in the

Re: [perl #76842] my @foo = 1..* @foo.max doesn't finish

2010-07-30 Thread Mark J. Reed
What is assigning a Range to an array supposed to do? Give you an array of one item which is a Range? Convert to a series? On Friday, July 30, 2010, Will Coleda perl6-bugs-follo...@perl.org wrote: # New Ticket Created by  Will Coleda # Please include the string:  [perl #76842] # in the

Re: [perl #76842] my @foo = 1..* @foo.max doesn't finish

2010-07-30 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 01:22:02PM -0400, Mark J. Reed wrote: What is assigning a Range to an array supposed to do? Give you an array of one item which is a Range? Convert to a series? A range in list context becomes a list of successive values in the Range. my @foo = 1..*; causes

Re: [perl #76842] my @foo = 1..* @foo.max doesn't finish

2010-07-30 Thread Mark J. Reed
Right. So, my $foo = 1..*; $foo.max; Should return Inf; likewise my @foo = 1...*; @foo.max; Should behave like (1...*).max ...that is, I expect both not to terminate. It's the conversion to array that is the break in the original example, not the act of assigning to a variable. This .. vs