Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[BUG] Simple gather loop flusters Rakudo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Solomon Foster  
View profile  
 More options Apr 27 2012, 10:59 pm
Newsgroups: perl.perl6.compiler
From: perl6-bugs-follo...@perl.org (Solomon Foster)
Date: Fri, 27 Apr 2012 19:59:22 -0700
Local: Fri, Apr 27 2012 10:59 pm
Subject: [perl #112654] [BUG] Simple gather loop flusters Rakudo
# New Ticket Created by  Solomon Foster
# Please include the string:  [perl #112654]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112654 >

colomon: r: sub mcf() { gather loop { take 1; last; }; }; say mcf().perl
p6eval: rakudo dda5b0: OUTPUT«Method 'eager' not found for invocant of
class 'Integer'␤  in sub coro at src/gen/CORE.setting:4926␤  in method
reify at src/gen/CORE.setting:4907␤  in method reify at
src/gen/CORE.setting:4678␤  in method gimme at
src/gen/CORE.setting:5065␤  in method perl at src/…

--
Solomon Foster: colo...@gmail.com
HarmonyWare, Inc: http://www.harmonyware.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Patrick R. Michaud"  
View profile  
 More options Apr 28 2012, 3:53 am
Newsgroups: perl.perl6.compiler
From: pmich...@pobox.com ("Patrick R. Michaud")
Date: Sat, 28 Apr 2012 02:53:28 -0500
Local: Sat, Apr 28 2012 3:53 am
Subject: Re: [perl #112654] [BUG] Simple gather loop flusters Rakudo

On Fri, Apr 27, 2012 at 07:59:22PM -0700, Solomon Foster wrote:
> colomon: r: sub mcf() { gather loop { take 1; last; }; }; say mcf().perl
> p6eval: rakudo dda5b0: OUTPUT«Method 'eager' not found for invocant of
> class 'Integer'␤  in sub coro at src/gen/CORE.setting:4926␤  in method
> reify at src/gen/CORE.setting:4907␤  in method reify at
> src/gen/CORE.setting:4678␤  in method gimme at
> src/gen/CORE.setting:5065␤  in method perl at src/…

The problem was actually with the 'loop' statement, not the 'gather';
the 'loop' statement was returning a Parrot Integer 1.  Notably
the gather statement works fine if 'loop' is replaced with 'while 1'.

Now fixed in a25e7d1, needs spectests to close ticket.

Pm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »