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
endless loop when calling nextsame in two multis differing only by constraints #3718
Comments
From @ninermulti foo(Int $foo where * > 0) { prints:
|
From @niner
ctx and therefore disp_lex is different on every iteration. So the vivified dispatcher is stored in the $*DISPATCHER lexical, but every time it's a different lexical. This is why we get a new dispatcher every time that does not share state with the old one and thus tries the same method again that already was invoked. |
From @ninerThe lambda in the multi method's signature like all blocks does a takedispatcher, thus eating the cur_dispatcher that was meant for the method's body. |
From @jnthnOn Thu, 05 Mar 2015 02:12:21 -0800, nine@detonation.org wrote:
Fixed and test added to S12-methods/defer-next.t. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123989 (status was 'resolved')
Searchable as RT123989$
The text was updated successfully, but these errors were encountered: