Re: Lock class question

2005-10-24 Thread Marvin Humphrey
On Oct 24, 2005, at 9:12 AM, Doug Cutting wrote: Marvin Humphrey wrote: What are the advantages of the With class? Why not just obtain the lock, run a block, and release the lock? The release should be in a 'finally' block. 'With' enforces that. Ah. No 'finally' blocks in Perl, but I

Re: Lock class question

2005-10-24 Thread Doug Cutting
Marvin Humphrey wrote: What are the advantages of the With class? Why not just obtain the lock, run a block, and release the lock? The release should be in a 'finally' block. 'With' enforces that. Doug - To unsubscribe, e-

Lock class question

2005-10-22 Thread Marvin Humphrey
Greets, I'm currently working on porting the Lock class to Perl, and I'm curious: What are the advantages of the With class? Why not just obtain the lock, run a block, and release the lock? Marvin Humphrey Rectangular Research http://www.rectangular.com/ ---