Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: getting shared_clone() functionality with earlier threads::shared?

by DrWhy (Chaplain)
on Nov 10, 2010 at 17:11 UTC ( #870626=note: print w/ replies, xml ) Need Help??


in reply to Re: getting shared_clone() functionality with earlier threads::shared?
in thread getting shared_clone() functionality with earlier threads::shared?

That's an interesting idea. I hadn't looked at the code for the more recent threads::shared and didn't realize shared_clone was implemented in pure perl -- I assumed it was in .xs like the rest of the module's code.

Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

UPDATE: fixed typo.

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."


Comment on Re^2: getting shared_clone() functionality with earlier threads::shared?
Re^3: getting shared_clone() functionality with earlier threads::shared?
by BrowserUk (Pope) on Nov 10, 2010 at 22:42 UTC
    Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

    That too is an interesting idea. It's not something I've ever thought to try. My gut feel says it's not going to work, but please be sure to come back and tell us how you get on.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Don't know when I'll get to this, but I'll leave up this link to this comment in my chatterbox as a reminder.

      --DrWhy

      "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://870626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-08-29 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls