Re: This Week on perl5-porters (8-14 May 2006)

chromatic <[email protected]> Wed, 17 May 2006 23:00:05 -0700
Newsgroups gmane.comp.lang.perl.perl5-summary
Message-ID <200605172300.05319.chromatic__5227.92967171899$1147936037$gmane$org@wgz.org>
On Wednesday 17 May 2006 12:59, David Landgren wrote:

> It turns out that the heart of the matter is "Test::MockObject", which
>    cannot be made to work correctly if classes overload their own "isa"
>    functions.

Exactly backwards.  Test::MockObject and Test::MockObject::Extends both 
overload isa() and can.  Stupid, buggy, short-sighted, and wrong code that 
calls UNIVERSAL::isa() and UNIVERSAL::can() as functions breaks it.

Calling sv_derived_from() in XS code and expecting it to work on Perl objects 
is likewise wrong-headed.

-- c