Did you cover this test case? That ${} dereferencing (or actually, anything) is still legal? That numfication still worked correctly?
use Test::More tests => 2; my $obj = Foo::Bar->new; is( $obj->some_method, "ok" ); is( 0 + $obj, 42 ); package Foo::Bar; use overload '${}' => 'some_method' '0+' => 'numify'; use Object::InsideOut; sub numify { 42 } sub some_method { "ok" }
In reply to Re: New Module Announcement: Object::InsideOut
by diotalevi
in thread New Module Announcement: Object::InsideOut
by jdhedden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |