> [rhesa - Wed Apr 28 11:12:56 2004]: > > Class::Struct allows you to override the accessors it creates, but it > doesn't call them in its constructor. > In other words, > > $struct->field('blah'); > > calls my override, but > > $struct = structure->new('field' => 'blah'); > > doesn't. Class::Struct simply does > > $r->{'field'} = $init{'field'} > > but it would be more useful if it did > > $r->field($init{'field'})
Sounds like a valid complaint to me. Example 2 in the docs demonstrates overriding Class::Struct accessors and the constructor should follow suit. Pumpkings, there's a patch with this ticket to fix this.