Skip to content
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

internal error when macro quasis contain 'loop' or 'while' loops in Rakudo #3209

Open
p6rt opened this issue Aug 17, 2013 · 2 comments
Open
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 17, 2013

Migrated from rt.perl.org#119335 (status was 'stalled')

Searchable as RT119335$

@p6rt
Copy link
Author

p6rt commented Aug 17, 2013

From @masak

<grondilu> perl6 -e 'macro myloop($s) { quasi { loop { {{{$s}}} } } }'
<grondilu> ===SORRY!===
<grondilu> Could not find sub cuid_1_1376731420.91863
* masak submits rakuodbug
<grondilu> weird, isn't it?
<masak> r​: macro myloop($s) { quasi { loop { {{{$s}}} } } }
<camelia> rakudo ade8bc​: OUTPUT«===SORRY!===␤Could not find sub
cuid_1_1376732548.89373␤»
<masak> r​: macro myloop($s) { quasi { } }; say "A"
<camelia> rakudo ade8bc​: OUTPUT«A␤»
<masak> r​: macro myloop($s) { quasi { loop { } } }
<camelia> rakudo ade8bc​: OUTPUT«===SORRY!===␤Could not find sub
cuid_1_1376732590.26211␤»
<Mouq> also
<Mouq> r​: macro myloop($s) { quasi { while 1 { } } }
<camelia> rakudo ade8bc​: OUTPUT«===SORRY!===␤Could not find sub
cuid_1_1376733098.895␤»
<Mouq> but not
<Mouq> r​: macro myloop($s) { quasi { for 1..* { } } }
<camelia> rakudo ade8bc​: ( no output )
<timotimo> ah, so it's not even that.
<masak> right.
<masak> it's macros and loops (but not for loops), AFAICS.
<masak> r​: quasi { loop {} }
<camelia> rakudo ade8bc​: OUTPUT«===SORRY!===␤Could not find sub
cuid_1_1376734365.60755␤»
<moritz> r​: quasi { loop {} }; 1
<camelia> rakudo ade8bc​: OUTPUT«===SORRY!===␤Could not find sub
cuid_1_1376734386.4858␤»
<moritz> ok, it's not sink context that's to blame :-)
<masak> moritz​: right -- that's easy to assume, but we established
above that it wasn't.
<masak> I bet from hunting that one down, I will learn something about
the Rakudo internals.

@p6rt
Copy link
Author

p6rt commented Apr 26, 2016

@coke - Status changed from 'new' to 'stalled'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant