New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callsame does not work more than once (callsame; callsame; callsame;) #4465
Comments
From @AlexDanielCode: Result: I expected this: Another interesting code snippet: Which, surprisingly, prints this: IRC log: http://irclog.perlgeek.de/perl6/2015-08-10#i_11036336 and |
From @jnthnOn Mon Aug 10 17:19:45 2015, alex.jakimenko@gmail.com wrote:
Then you expected wrong. Discussion here: http://irclog.perlgeek.de/perl6/2015-11-12#i_11527573 This ticket did uncover that there isn't a way to actually do what you wanted, though, so we have nextcallee, which does. I've added a test for that in S12-methods/defer-call.t. The remaining open question I've asked (waiting for answer) is what callsame should do on an exhausted dispatch iterator.
I think it's dubious that nextsame lets control go on to the say 'y' even if the iterator is exhausted, so asked about this one too. Will update tickets and tests with the answers. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Fri Nov 13 09:05:08 2015, jnthn@jnthn.net wrote:
Larry answered that callsame/callwith returning Nil is the right thing, so those semantics stand.
We now will never reach that 'y' even if we don't have anywhere to go; the nextsame will call a return of Nil. Tests for these updated semantics added in S12-methods/defer-[call|next].t. /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125783 (status was 'resolved')
Searchable as RT125783$
The text was updated successfully, but these errors were encountered: