|
: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.
|