perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: ACL filesystem incompatibility and potential race condition
Date Fri, 04 Mar 2005 01:47:21 GMT
Stas Bekman <stas@stason.org> 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: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message