develooper Front page | perl.perl5.porters | Postings from October 1999

Re: perlthread.pod -- First draft of thread docs

Thread Previous | Thread Next
From:
Matthias Urlichs
Date:
October 26, 1999 01:55
Subject:
Re: perlthread.pod -- First draft of thread docs
Message ID:
19991026105451.B17579@noris.de
Hi,

Tuomas J. Lukka:
> 
> Actually, I think that maybe
> 	$lock = lock $obj;
> 	undef $lock;
> would make a nice interface
>
That's somewhat nonintuitive, IMHO, because the current semantics of

     foo();

are identical to

     {  my $bar = foo(); }
or
     my $bar = foo();
	 $bar = undef;

so the lock code would need some internal magic to determine whether its
return value is going to be stored anywhere.

Somehow I doubt that the current Perl core allows for this..?
-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
Everything is worth precisely as much as a belch, the difference being
that a belch is more satisfying.
		-- Ingmar Bergman

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About