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

stubbed sub in RHS of constant not being updated #5355

Open
p6rt opened this issue Jun 3, 2016 · 2 comments
Open

stubbed sub in RHS of constant not being updated #5355

p6rt opened this issue Jun 3, 2016 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2016

Migrated from rt.perl.org#128314 (status was 'new')

Searchable as RT128314$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2016

From @LLFourn

m​: sub f {...}; our constant @​a = lazy map { f() }, ^Inf; sub f { rand };
say @​a[^3]
22​:14 <+camelia> rakudo-moar dfbf1e​: OUTPUT«Stub code executed␤

grondilu++ for picking this up

Since the RHS of the constant is actually being run at runtime and not
BEGIN the reference to it should not be point to the definition but it's
still executing the sub.

@p6rt
Copy link
Author

p6rt commented Jun 3, 2016

From @LLFourn

see http://irclog.perlgeek.de/perl6/2016-06-03#i_12599481 for jnthn comments

On Fri, Jun 3, 2016 at 10​:28 PM perl6 via RT <perl6-bugs-followup@​perl.org>
wrote​:

Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding​:
"stubbed sub in RHS of constant not being updated",
a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [perl #​128314].

Please include the string​:

     \[perl #&#8203;128314\]

in the subject line of all future correspondence about this issue. To do
so,
you may reply to this message.

                    Thank you,
                    perl6\-bugs\-followup@&#8203;perl\.org

-------------------------------------------------------------------------
m​: sub f {...}; our constant @​a = lazy map { f() }, ^Inf; sub f { rand };
say @​a[^3]
22​:14 <+camelia> rakudo-moar dfbf1e​: OUTPUT«Stub code executed␤

grondilu++ for picking this up

Since the RHS of the constant is actually being run at runtime and not
BEGIN the reference to it should not be point to the definition but it's
still executing the sub.

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