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

Here's a case where Niecza prints '4' but Rakudo gets confused about something #2920

Closed
p6rt opened this issue Oct 15, 2012 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Oct 15, 2012

Migrated from rt.perl.org#115276 (status was 'resolved')

Searchable as RT115276$

@p6rt
Copy link
Author

p6rt commented Oct 15, 2012

From @masak

<masak> rn​: say(|(|([4])))
<p6eval> niecza v22-13-g0d2a99e​: OUTPUT«4␤»
<p6eval> ..rakudo 8a07b8​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Undefined
routine '&prefix​:<|>' called (line 1)␤»
* masak submits rakudobug

diakopterbugs. they're weird and wonderful. :)

@p6rt
Copy link
Author

p6rt commented Feb 17, 2015

From @coke

On Mon Oct 15 07​:07​:10 2012, masak wrote​:

<masak> rn​: say(|(|([4])))
<p6eval> niecza v22-13-g0d2a99e​: OUTPUT«4␤»
<p6eval> ..rakudo 8a07b8​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Undefined
routine '&prefix​:<|>' called (line 1)␤»
* masak submits rakudobug

diakopterbugs. they're weird and wonderful. :)

Current behavior with rakudo​:

$ ./perl6 -e 'say(|(|([4])))'
===SORRY!=== Error while compiling -e
Variable '&prefix​:<|>' is not declared
at -e​:1
------> say(|(⏏|([4])))

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 17, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 9, 2015

From @usev6

This fails now with a typed exception "X​::Syntax​::ArgFlattener".

$ perl6 -e 'say(|(|([4])))'
===SORRY!=== Error while compiling -e
Arg-flattening | is only valid in an argument list
at -e​:1
------> say(|(|⏏([4])))

Please note that the first '|' is valid (argument list for 'say')​:

$ perl6 -e 'say(|([4]))'
4

I added a test to S32-exceptions/misc.t with commit Raku/roast@3c982d5b9e

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Apr 9, 2015

From @usev6

This fails now with a typed exception "X​::Syntax​::ArgFlattener".

$ perl6 -e 'say(|(|([4])))'
===SORRY!=== Error while compiling -e
Arg-flattening | is only valid in an argument list
at -e​:1
------> say(|(|⏏([4])))

Please note that the first '|' is valid (argument list for 'say')​:

$ perl6 -e 'say(|([4]))'
4

I added a test to S32-exceptions/misc.t with commit Raku/roast@3c982d5b9e

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Apr 9, 2015

@usev6 - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant