Object-InsideOut - Type with no Accessors

Posted on Fri Nov 18 22:20:58 2005 by earl
Type with no Accessors
I have a module that uses the latest version of Object::InsideOut (v1.11). The module has the following declaration.
my @f :Field('Type' => 'HASH');
When I try testing the module, I get the following error message:
OIO::Attribute error: Accessor name missing in :FIELD attribute in package ... Info: Need 'GET', 'SET' or 'ACCESSOR' designator Attribute: Field( 'Type' =&gt 'HASH')
Removing 'Type' => 'HASH' or Adding 'Get' => 'xxx' makes the error go away. Why is it an error to have a Type without a Get? Whenever I call ->set (the internal setter), I would like the value type checked.
Direct Responses: 1352 | Write a response