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 BergmanThread Previous | Thread Next