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