No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
hello,
thanks for the suggestions, even if I really got no answers :) I received, from another source I consider affordable, if not authoritative, the confirmation that what I called pseudo-method is a perfectly viable design. They called it dispatch table for a known invocant and they told me I can also write them as: my $code = $self->{$wanted_command}; $self->$code(@whole_data) to appears similar to a real method call. Personally I prefere my first syntax as I find it more explicit. Added for the posterity. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS. In reply to Re: dynamic method creation, dispatch table or pseudo methods?
by Discipulus
|
|