develooper Front page | perl.perl5.porters | Postings from February 2008

Thread::Semaphore issues

Jerry D. Hedden
February 13, 2008 11:54
Thread::Semaphore issues
Message ID:
While working on a patch to update the Thread::Semaphore
docs (it uses 'new Thread::Semaphore' for instance), I
noticed that its methods validate their arguments.

Obviously, calling any of its methods with a non-numeric
argument is an error, but what of the following:



Since the no-arg defaults are 1, and the usually expected
values are positive integers, I would classify the above as
errors.  Comments? Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About