Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make 42->isa("UNIVERSAL") work #114

Open
schwern opened this Issue · 2 comments

2 participants

@schwern
Owner

autobox 2.60changed isa() and can() (at our request) but now 42->isa("UNIVERSAL") no longer works. But autoboxed things do inherit from UNIVERSAL.

$ perl -wle 'use autobox; sub UNIVERSAL::echo { print "@_" } print "Yes" if 42->isa("UNIVERSAL"); 42->echo '
42

Make it work, either by getting autobox fixed or fixing it internally.

@notbenh

I think this is related to #42 as getting is_instance is really just a little wrapper around ->isa that will fail over to check for ref in worst case.

@schwern
Owner

There's a test in t/everything_is_an_object.t for this. I just made it a TODO test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.