Re: This Week on perl5-porters (8-14 May 2006)
[email protected] (chromatic) Wed, 17 May 2006 23:00:05 -0700
| Newsgroups | perl.perl5.porters,perl.perl5.summary |
|---|---|
| Message-ID | <[email protected]> |
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