state and = vs :=

2014-10-02 Thread Father Chrysostomos
Does ‘state’ govern ‘:=’ the way it governs ‘=’? In other words, just as this: state $x = 1; only assigns to $x once (per closure), does the same apply to this? state $x := $y; I can’t find anything in the specs that implies that it does. The reason I ask is that I am currently

Re: When do named subs bind to their variables? (Re: Questionable scope of state variables ([perl #113930] Lexical subs))

2012-07-09 Thread Father Chrysostomos via RT
On Sat Jul 07 18:35:03 2012, tom christiansen wrote: Father Chrysostomos via RT perlbug-comm...@perl.org wrote on Sat, 07 Jul 2012 17:44:46 PDT: I’m forwarding this to the Perl 6 language list, so see if I can find an answer there. I do have an answer from Damian, which I

When do named subs bind to their variables? (Re: Questionable scope of state variables ([perl #113930] Lexical subs))

2012-07-09 Thread Father Chrysostomos via RT
bar { say @a }; @a := [4,5,6]; bar(); } -- Father Chrysostomos

Re: When do named subs bind to their variables? [perl #113930]

2012-07-09 Thread Father Chrysostomos via RT
On Sat Jul 07 22:23:16 2012, thoughtstream wrote: Father Chrysostomos asked: What I am really trying to find out is when the subroutine is actually cloned, Yes. It is supposed to be (or at least must *appear* to be), and currently is (or appears to be) in Rakudo. I said when