On Sat Jun 21 13:53:29 2008, ANDYA wrote:
Show quoted text> On Wed Oct 31 16:59:55 2007, FBRIERE wrote:
> > Test::Deep currently calls UNIVERSAL::isa and UNIVERSAL::can to
> figure
> > out what an object is or can do. As perlobj(1) points out, this
> > prevents classes from overriding these methods. (Overriding can()
> would
> > allow me to overcome the current AUTOLOAD bug.)
>
> Here's a patch that I think fixes it. If Fergal wants to use it I'll
> provide some test coverage too.
I though I had replied to this but I don't see it anywhere. I'm not a
fan of changing behaviour so what I'd like to do is leave the current
behaviour as is and make it clear that it uses UNIVERSAL and then add
some appropriately named others that use ->isa and ->can.
I looked at the patch. I would have tested for blessedness and then
called can or isa. What's the reason for doing it as you've done?
F