Object-InsideOut - Re: Migrating from Class::Std

Posted on Thu Nov 17 20:29:33 2005 by jdhedden in response to 1336 (See the whole thread of 2)
Re: Migrating from Class::Std
:InitArgs can be automatically placed into object fields by tying them together using :InitArg's Field designator:
my @myfield :Field; my %init_args :InitArgs = ( 'myfield' => { 'Field' => \@myfield, 'Mandatory' => 1 } );
If all the :InitArgs are handled in this manner, then the :Init subroutine is optional.
Write a response