in reply to $50 towards a laptop for the winner
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $50 towards a laptop for the winner
by LanX (Saint) on Jul 28, 2020 at 23:59 UTC | |
by jcb (Parson) on Jul 30, 2020 at 01:31 UTC | |
|
Re^2: $50 towards a laptop for the winner
by perlfan (Parson) on Jul 30, 2020 at 03:58 UTC |