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
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
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