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

"nothing while <cond>" fails #173

Closed
p6rt opened this issue Jul 18, 2008 · 8 comments
Closed

"nothing while <cond>" fails #173

p6rt opened this issue Jul 18, 2008 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Jul 18, 2008

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

Searchable as RT57076$

@p6rt
Copy link
Author

p6rt commented Jul 18, 2008

From @masak

Even though the keyword nothing is implemented in rakudo, the following fails​:

$ ./perl6 -e 'my $var = 0; nothing while $var++ < 3'
Could not find non-existent sub while
current instr.​: '_block11' pc 71 (EVAL_13​:26)
called from Sub 'parrot;PCT​::HLLCompiler;eval' pc 806
(src/PCT/HLLCompiler.pir​:481)
called from Sub 'parrot;PCT​::HLLCompiler;command_line' pc 1305
(src/PCT/HLLCompiler.pir​:708)
called from Sub 'parrot;Perl6​::Compiler;main' pc 14346 (perl6.pir​:172)
$

@p6rt
Copy link
Author

p6rt commented Jul 18, 2008

From @masak

Here's a 1-line patch that fixes nothing, pmichaud++.

@p6rt
Copy link
Author

p6rt commented Jul 18, 2008

From @masak

make_nothing_0ary.patch
Index: src/parser/grammar.pg
===================================================================
--- src/parser/grammar.pg	(revision 29586)
+++ src/parser/grammar.pg	(working copy)
@@ -547,7 +547,7 @@
 
 ##  XXX: cheat until we get term:pi, term:rand, term:undef, etc.
 token named_0ary {
-    [pi|rand|undef] >>
+    [pi|rand|undef|nothing] >>
 }
 
 rule package_declarator {

@p6rt
Copy link
Author

p6rt commented Jul 18, 2008

From @TimToady

On Fri, Jul 18, 2008 at 05​:53​:17PM +0200, Carl Mäsak wrote​:
: Here's a 1-line patch that fixes nothing, pmichaud++.

Note that nothing is now unspecced. :)

Larry

@p6rt
Copy link
Author

p6rt commented Jul 18, 2008

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

@p6rt
Copy link
Author

p6rt commented Jul 19, 2008

From @masak

Larry (>), Carl (>​:)​:

: Here's a 1-line patch that fixes nothing, pmichaud++.

Note that nothing is now unspecced. :)

Are you suggesting that nothing may be replaced in the future?

// Carl

@p6rt
Copy link
Author

p6rt commented Sep 15, 2008

From @pmichaud

Fixed in r31163, thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Sep 15, 2008

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

@p6rt p6rt closed this as completed Sep 15, 2008
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