Arguably, we already have a minimal OO spec for Perl — the "classic" Perl 5 object system uses only two primitives: bless to associate a vtable (in the form of a package STASH) to a data reference, and the method call operator (variably written as $obj->$method(LIST) or method $obj LIST) that searches those vtables, implementing inheritance as "look here next if not found" semantics from the package variable @ISA in each package used as a vtable.
So I ask: how does the "classic" Perl 5 object system not meet your criteria?
(Yes, the arrow operator accepts a scalar naming the method to call.)
In reply to Re: $50 towards a laptop for the winner
by jcb
in thread $50 towards a laptop for the winner
by perlfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |