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

lone 'multi' is not understood correctly by rakudo #155

Closed
p6rt opened this issue Jul 19, 2008 · 5 comments
Closed

lone 'multi' is not understood correctly by rakudo #155

p6rt opened this issue Jul 19, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 19, 2008

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

Searchable as RT57122$

@p6rt
Copy link
Author

p6rt commented Jul 19, 2008

From @masak

While

$ ./perl6 -e 'multi sub f() {}'

works like it should,

$ ./perl6 -e 'multi f() {}'
Statement not terminated properly at line 1, near "{}"
current instr.​: 'parrot;PGE​::Util;die' pc 120
(runtime/parrot/library/PGE/Util.pir​:82)
called from Sub 'parrot;Perl6​::Grammar;eat_terminator' pc 23187
(src/gen_grammar.pir​:2813)
called from Sub 'parrot;Perl6​::Grammar;statementlist' pc 22200
(src/gen_grammar.pir​:2450)
called from Sub 'parrot;Perl6​::Grammar;statement_block' pc 20057
(src/gen_grammar.pir​:1650)
called from Sub 'parrot;Perl6​::Grammar;TOP' pc 16329 (src/gen_grammar.pir​:224)
called from Sub 'parrot;PCT​::HLLCompiler;parse' pc 585
(src/PCT/HLLCompiler.pir​:371)
called from Sub 'parrot;PCT​::HLLCompiler;compile' pc 438
(src/PCT/HLLCompiler.pir​:303)
called from Sub 'parrot;PCT​::HLLCompiler;eval' pc 776
(src/PCT/HLLCompiler.pir​:473)
called from Sub 'parrot;PCT​::HLLCompiler;command_line' pc 1305
(src/PCT/HLLCompiler.pir​:708)
called from Sub 'parrot;Perl6​::Compiler;main' pc 14518 (perl6.pir​:172)

doesn't.

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @jnthn

On Sat Jul 19 07​:21​:52 2008, masak wrote​:

While

$ ./perl6 -e 'multi sub f() {}'

works like it should,

$ ./perl6 -e 'multi f() {}'
Statement not terminated properly at line 1, near "{}"

Thanks for reporting, and fixed in r29752. (For anyone curious about the
semantics, the appropriate line of spec reads​: "If the routine keyword
is omitted, it defaults to sub.")

Jonathan

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

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

@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

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

@p6rt p6rt closed this as completed Jul 26, 2008
@p6rt
Copy link
Author

p6rt commented Jul 26, 2008

From @jnthn

On Sat Jul 19 07​:21​:52 2008, masak wrote​:

While

$ ./perl6 -e 'multi sub f() {}'

works like it should,

$ ./perl6 -e 'multi f() {}'
Statement not terminated properly at line 1, near "{}"

Thanks for reporting, and fixed in r29752. (For anyone curious about the
semantics, the appropriate line of spec reads​: "If the routine keyword
is omitted, it defaults to sub.")

Jonathan

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

No branches or pull requests

1 participant