Joe Schaefer wrote:

which is obviously bogus. It should be:

  sub num_cmp { $_[0]->{rc} == $_[1] }

  '==' => \&num_cmp;

going to write some tests for APR::Error, before finishing off this
issue.


Cool; I'm wondering why not just use fallback => 1 and remove the '==' overload?

it doesn't seem to work. I did as you've suggested (to the current cvs):

  'fallback' => 1,

instead of:

  '==' => \&num_cmp;

and t/error/runtime.t now fails:

[Thu Mar 03 20:51:51 2005] [error] [client 127.0.0.1] APR::Error: Can't handle '==' at /home/stas/apache.org/mp2-svn/blib/lib/Apache2/APR/Error.pm line 39.



--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to