Subject: Re: Test::More behavior issue with Devel::Cover + patch
From: Ricardo SIGNES <[EMAIL PROTECTED]>
Date: Thu, 3 Nov 2005 13:14:34 -0500

}It was using ->isa instead of UNIVERSAL::isa because isa might be
}overridden.  Surely the same could apply to ->can.

I've been thinking about it, and it'd be nice to find out if the object's 
been blessed insead of relying on UNIVERSAL::can in my patch.  The closest 
I've come to this is using Scalar::Util::blessed, but Scalar::Util wasn't 
core until 5.7.3 (according to corelist) and Test-Simple tests itself 
going back to 5.4.0.

Stealing the code from Scalar::Util isn't necessarily the best fix either.

Does anyone have a better way of checking whether an object is blessed 
that's backportable through core?

-Pete K
-- 
Pete Krawczyk
  perl at bsod dot net

Reply via email to