develooper Front page | perl.ithreads | Postings from May 2008

Re: p5p summary: Improving threads::shared ?

Thread Previous | Thread Next
From:
Dean Arnold
Date:
May 8, 2008 08:54
Subject:
Re: p5p summary: Improving threads::shared ?
Message ID:
48232212.1070507@presicient.com
Jerry D. Hedden wrote:
>>  perhaps we could just provide a function:
>>
>>     $y = shared_clone($x);
> 
> What name should this function have?
> 
>     shared_clone()
>     clone()
>     shared_copy()
>     copy()
>     make_shared()
> 
> Or something else?
> 

I'd vote against clone() or copy(), as they're too
general. Otherwise, I personally have no opinion,
tho clone has come to mean this sort of deepcopy
(see the various Clone modules), so I suppose
shared_clone() may make sense.

- Dean

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