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

Can't name a subroutine 'loop' in Rakudo #1518

Closed
p6rt opened this issue Feb 17, 2010 · 5 comments
Closed

Can't name a subroutine 'loop' in Rakudo #1518

p6rt opened this issue Feb 17, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 17, 2010

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

Searchable as RT72898$

@p6rt
Copy link
Author

p6rt commented Feb 17, 2010

From @masak

<masak> rakudo​: sub loop() { say "OH HAI" }; loop()
<p6eval> rakudo ed95e2​: OUTPUT«Whitespace required after 'loop' at line 11 [...]
<masak> std​: sub loop() { say "OH HAI" }; loop()
<p6eval> std 29763​: OUTPUT«ok 00​:01 109mâ�¤Â»
* masak submits rakuodbug

So it should be allowed. Also, why 'line 11'?

@p6rt
Copy link
Author

p6rt commented Feb 19, 2010

From @pmichaud

On Wed, Feb 17, 2010 at 01​:47​:49AM -0800, Carl Mäsak wrote​:

<masak> rakudo​: sub loop() { say "OH HAI" }; loop()
<p6eval> rakudo ed95e2​: OUTPUT«Whitespace required after 'loop' at line 11 [...]
<masak> std​: sub loop() { say "OH HAI" }; loop()
<p6eval> std 29763​: OUTPUT«ok 00​:01 109mâ�¤Â»
* masak submits rakuodbug

So it should be allowed. Also, why 'line 11'?

The "line 11" is likely an artifact of p6eval, which textually
includes the source of Safe.pm at the beginning of whatever
code you submit to p6eval.

Pm

@p6rt
Copy link
Author

p6rt commented Feb 19, 2010

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

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

From @tadzik

A test added in 5a414bcc62 [1], works, so it can be closed now.

[1] Raku/roast@5a414bcc62

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

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

@p6rt p6rt closed this as completed Feb 20, 2011
@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