On Fri, Aug 27, 2004 at 10:16:48AM +0200, Rafael Garcia-Suarez wrote: > Andrew Pimlott wrote: > > > > Can you tell me where this limitation in perl threads is documented? > > Is there any hope that it will be removed in the future? > > It's not a limitation, if you share a hash it looks normal to me > that you should share its elements too. (or you end up with weird > quantum hashes that don't look the same from different threads...)
I would have expected the referent of a value assigned to a shared scalar would be automatically shared (ie, promoted to shared if it is unshared). It seems like that is what the programmer is probably asking for. > That said, threads are underdocumented and the error message could > be made much clearer. Something like "reference to an unshared value assigned to a shared scalar"? Does that cover all the cases? Andrew