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

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

Thread Previous | Thread Next
Matthias Urlichs
October 26, 1999 01:55
Re: perlthread.pod -- First draft of thread docs
Message ID:

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


are identical to

     {  my $bar = foo(); }
     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   |  |  ICQ: 20193661
The quote was selected randomly. Really.    |
Everything is worth precisely as much as a belch, the difference being
that a belch is more satisfying.
		-- Ingmar Bergman

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About