Re: "take"-ing to-be-modified variables

2009-07-21 Thread yary
A minor point, a capture-of-captures is different from an array-of-arrays (at least it was a few months ago), and the array assignment flattens a capture-of-captures into a flat array. If you want to preserve the capture structure, use "my @@stuff = gather ..." ... but rakudo doesn't seem to suppor

Re: "take"-ing to-be-modified variables

2009-07-21 Thread Patrick R. Michaud
On Tue, Jul 21, 2009 at 07:19:10PM -0400, Minimiscience wrote: > When "take" is called on a variable that is later modified, is the > Capture returned by the enclosing "gather" supposed to reflect the > change or not? I know that Captures are the Perl 6 equivalent of > references, but it see

"take"-ing to-be-modified variables

2009-07-21 Thread Minimiscience
When "take" is called on a variable that is later modified, is the Capture returned by the enclosing "gather" supposed to reflect the change or not? I know that Captures are the Perl 6 equivalent of references, but it seems natural to expect the contents to be copied by value at some point