Skip Menu |
Report information
Id: 128314
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: lloyd.fourn [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Fri, 03 Jun 2016 12:28:07 +0000
Subject: stubbed sub in RHS of constant not being updated
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Download (untitled) / with headers
text/plain 354b

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.

To: perl6-bugs-followup [...] perl.org
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
Subject: Re: [perl #128314] AutoReply: stubbed sub in RHS of constant not being updated
Date: Fri, 03 Jun 2016 12:31:02 +0000
Download (untitled) / with headers
text/plain 1.1k

On Fri, Jun 3, 2016 at 10:28 PM perl6 via RT <perl6-bugs-followup@perl.org> wrote:
Show quoted text
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-followup@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.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org