Thread

Posted on Tue Dec 5 23:49:03 2006 by jdhedden
Object::InsideOut v3.01
Object::InsideOut v3.01 supports :Restricted and :Private classes. It also supports permission exemptions for :Restricted :Cumulative and :Restricted :Chained methods.

The POD has been split out into a separate file.

I bumped up the major version number to 3 because this version underwent significant internal code changes. Compatibility with previous versions was maintained.

Enjoy.
Direct Responses: 3712 | Write a response
Posted on Wed Dec 6 09:30:04 2006 by gaetan in response to 3710
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
Posted on Wed Dec 6 19:03:49 2006 by jdhedden in response to 3712
Re: Object::InsideOut v3.01
I was not able to find a cause for this, nor could I reproduce it. If you would please generate a sample script the reproduces the problem, and email it to me directly, that would be very helpful. Thanks.

Also, you might try upgrading to Perl 5.8.8, if possible.
Write a response