Stas Bekman <[EMAIL PROTECTED]> writes:

[...]

>> Hmm, for some reason overloading doesn't work. Take a look at
>> APR/Error.pm, which defines '==' as:
>>   sub num { $_[0]->{rc} }
>
> 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?

-- 
Joe Schaefer


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

Reply via email to