in reply to New Module Announcement: Object::InsideOut
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" }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: New Module Announcement: Object::InsideOut
by jdhedden (Deacon) on Nov 03, 2005 at 21:24 UTC | |
by diotalevi (Canon) on Nov 03, 2005 at 21:28 UTC | |
by jdhedden (Deacon) on Nov 04, 2005 at 13:11 UTC | |
by Aristotle (Chancellor) on Nov 04, 2005 at 14:17 UTC | |
by jdhedden (Deacon) on Jan 10, 2006 at 15:40 UTC |
In Section
Perl News