Object-InsideOut - Re: Object::InsideOut v3.01

Posted on Wed Dec 6 09:30:04 2006 by gaetan in response to 3710 (See the whole thread of 3)
Re: Object::InsideOut v3.01
Hello Jerry I upgraded OIO from 2.25 to 3.01 ... and I obtained the following error (without any modifications in my code):
OIO::Internal error: Failure creating overloads Error: Use of uninitialized value in eval "string" Code: Code: Package: Object::InsideOut File: /users/go/site/lib/site_perl/5.8.6/Object/InsideOut/Overload.pm Line: 49 Trace begun at /users/go/site/lib/site_perl/5.8.6/Object/InsideOut/Exception.pm line 82 OIO::die at /users/go/site/lib/site_perl/5.8.6/Object/InsideOut/Overload.pm line 49 Object::InsideOut::generate_OVERLOAD at /users/go/psite/lib/site_perl/5.8.6/Object/InsideOut.pm lin +e 809 Object::InsideOut::initialize at /users/go/site/lib/site_perl/5.8.6/Object/InsideOut.pm line 1438 Object::InsideOut::new at /users/go/Connection/lib/Connection/Simulate.pm line 31 Connection::Simulate::new at 13-argument.t line 11
I tried to localize the error (I think it would be a very good exercise for me to understand the OIO internals ... to improve my Perl knowledges !) to possibly help you and correct the error. The error is raised in the Overload module, when trying to eval $code (line 46) but the variable $code is undef ! This occurs when I create a basic object (not using extra-features). My file declaring the object looks like:
package Connection::Simulate use Object::InsideOut qw(Connection::Cmd Connection::File); sub new { my $class = shift; $class->Object::InsideOut::new(name => "simulate"); } <snip>
Hope this will help you Gaetan
Direct Responses: 3719 | Write a response