Re: This Week on perl5-porters (8-14 May 2006)
[email protected] (James Mastros) Thu, 18 May 2006 11:09:39 +0100
| Newsgroups | perl.perl5.summary |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 17, 2006 at 11:00:05PM -0700, chromatic wrote: > 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. Unless what you are calling isa as a prelude to mucking about in the internals of an object. > Calling sv_derived_from() in XS code and expecting it to work on Perl objects > is likewise wrong-headed. ...and mucking about in the internals of an object is exactly what most XS code does.