[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: Re: [perl #37564] incorrect return value for threads::join()
From: Robin Houston <robin () cpan ! org>
Date: 2005-10-31 10:31:48
Message-ID: 20051031103148.GA27136 () rpc142 ! cs ! man ! ac ! uk
[Download RAW message or body]
On Mon, Oct 31, 2005 at 11:05:32AM +0200, Elizabeth Mattijsen wrote:
>
> I guess the alternative would have been to only allow a single scalar
> value to be returned by join(). Regardless of context of the
> create(). That would have made sense and would have been both clear
> and flexible enough, but unfortunately I was not involved with
> ithreads when the decision was made to take the context of create().
I agree, that would have been fine. I have no idea who made this
decision, and I'm certainly not blaming you! (Nor am I trying to
blame whoever did make the decision. I'm only wondering if there
is a way to improve matters.)
> If you need the thread to be joined in void context, just join it in
> void context. What is the problem with that?
It won't cause the sub to be *called* in void context.
> Indeed, because 'void' and 'list' would just be passed as parameters
> to &foo and &bar.
That was a very bad choice of example syntax. Sorry!
Robin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic