On Wed, 2006-07-12 at 17:52 -0700, Larry Wall wrote:
> On Wed, Jul 12, 2006 at 12:51:57PM -0400, Aaron Sherman wrote:
> : I would assume that all classes automatically define:
> :
> : multi submethod *infix: ($self: $?CLASS) { $self }
>
> Hmm, "as" is really only intended for explicit type mutat
On Wed, Jul 12, 2006 at 12:51:57PM -0400, Aaron Sherman wrote:
: I would assume that all classes automatically define:
:
: multi submethod *infix: ($self: $?CLASS) { $self }
Hmm, "as" is really only intended for explicit type mutation (which
can work either by role mixin or by new object constru
I would assume that all classes automatically define:
multi submethod *infix: ($self: $?CLASS) { $self }
so that derived classes can automatically:
$obj.as
Without actually changing their implementation details (only the type
that Perl currently thinks it's dealing with polymorphically).
In