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

[BUG w/ tests] Values of 'our' variables don't stick around #2967

Closed
p6rt opened this issue Nov 7, 2012 · 4 comments
Closed

[BUG w/ tests] Values of 'our' variables don't stick around #2967

p6rt opened this issue Nov 7, 2012 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Nov 7, 2012

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

Searchable as RT115630$

@p6rt
Copy link
Author

p6rt commented Nov 7, 2012

From @masak

<masak> nr​: sub foo { our $bar = 3 }; foo; say our $bar
<p6eval> niecza v22-19-gd874a8e​: OUTPUT«3␤»
<p6eval> ..rakudo 5dd878​: OUTPUT«Any()␤»
* masak submits rakudobug
<masak> nqp​: sub foo() { our $bar := 3 }; foo(); our $bar; say($bar)
<p6eval> nqp​: OUTPUT«3␤»

nqp and Niecza and I agree​: it should be 3, not Any.

@p6rt
Copy link
Author

p6rt commented May 9, 2013

From @FROGGS

Seems fixed​:
<FROGGS> nrp​: sub foo() { our $bar = 3 }; say foo(); say our $bar; say($bar)
<camelia> pugs​: OUTPUT«3␤␤␤»
<camelia> ..niecza v24-42-g69a3432​: OUTPUT«3␤3␤3␤»
<camelia> ..rakudo fe7049​: OUTPUT«Potential difficulties​:␤
Redeclaration of symbol $bar␤ at /tmp/0jFbIMD5lY​:1␤ ------> our
$bar = 3 }; say foo(); say our $bar⏏; say($bar)␤3␤3␤3␤»

Added test​: Raku/roast@b84a6e05fc

@p6rt
Copy link
Author

p6rt commented May 9, 2013

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

@p6rt
Copy link
Author

p6rt commented May 9, 2013

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

@p6rt p6rt closed this as completed May 9, 2013
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