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-follo...@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 #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-follo...@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.
>
>

Reply via email to