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

Constants exported from precompiled module don't get updated #5670

Closed
p6rt opened this issue Sep 13, 2016 · 3 comments
Closed

Constants exported from precompiled module don't get updated #5670

p6rt opened this issue Sep 13, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 13, 2016

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

Searchable as RT129266$

@p6rt
Copy link
Author

p6rt commented Sep 13, 2016

From @zoffixznet

NOTE​: This is fixed in HEAD, but is broken in 2016.08.1-143-gc9b18c6. I'm opening the ticket as a reference point for tests I'm about to submit.

# This module originally had 'bar' for the constant, then was precompiled, then 'bar' was changed to 'foo'​:
zoffix@​​:/var/www/tmp/na$ cat Foo.pm
constant $bar is export = "foo";

# Another module that uses the constant from the first
zoffix@​​:/var/www/tmp/na$ cat Bar.pm6
use Foo;
sub foo is export { "constant is $bar" }

# Script still reports the old 'bar' value​:
zoffix@​​:/var/www/tmp/na$ perl6 -I. -MBar -e 'say foo'
constant is bar

@p6rt
Copy link
Author

p6rt commented Sep 13, 2016

From @zoffixznet

Tests added in Raku/roast@1f616b0569

@p6rt
Copy link
Author

p6rt commented Sep 13, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Sep 13, 2016
@p6rt p6rt added the precomp 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