Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Is returning a list broken when using threads?

by tilly (Archbishop)
on Jul 25, 2004 at 04:59 UTC ( [id://377227]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is returning a list broken when using threads?
in thread Is returning a list broken when using threads?

Patches are welcome. (Appreciated even.)

Replies are listed 'Best First'.
Re^4: Is returning a list broken when using threads?
by CountZero (Bishop) on Jul 25, 2004 at 16:24 UTC
    Just a wild idea: could the thread routine not provide the return result for all possible contexts (scalar, array, boolean, ...) and have the join routine pick the one it needs as per its own context?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      That could be tricky, unless there were some guarantee that calling a routine in multiple contexts is idempotent.

      I thought that at first, but then I realized, as I mentioned above, that there's still one problem: what should wantarry return if called from within the designated subroutine?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-03-19 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found