develooper Front page | perl.perl6.language | Postings from June 2005

Re: Empty hash

Thread Previous | Thread Next
From:
Stuart Cook
Date:
June 2, 2005 05:14
Subject:
Re: Empty hash
Message ID:
49b35106050602051339d6cb38@mail.gmail.com
On 6/2/05, "TSa (Thomas SandlaƟ)" <Thomas.Sandlass@orthogon.com> wrote:
> Luke Palmer wrote:
> > Why did we change { %hash } from making a shallow copy of a hash to
> > the code that returns %hash?
> 
> Sorry, I don't understand this question. Do you want 'shallow copy'
> to mean 'take a ref'? Or Parrot/Pugs level COW?

I think he means "Why does it produce a Code (which happens to return
%hash), instead of a (ref to a) new hash that starts out with the same
k/v pairs as %hash, but thereafter can be modified independently?"


Stuart

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About