Parrot 1.4.0 Mundo Cani Released!

2009-07-21 Thread Christoph Otto
Look at the skies, whispered the Dog kindly. Look at the trees where God made beauty. But it is only a sorrow to look on me where God planted ugliness. sighed the Dog, such a fine small beak you have. Not his most piercing, his most murderous crow could move this remarkable rag. Not the

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

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 seems

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 support