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

Re: p5p summary: Improving threads::shared ?

Thread Previous | Thread Next
Dean Arnold
May 8, 2008 08:54
Re: p5p summary: Improving threads::shared ?
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About