Re: Another quick one: .asancestor

2006-07-13 Thread Aaron Sherman
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:as ($self: $?CLASS) { $self } Hmm, as is really only intended for explicit type mutation

Another quick one: .asancestor

2006-07-12 Thread Aaron Sherman
I would assume that all classes automatically define: multi submethod *infix:as ($self: $?CLASS) { $self } so that derived classes can automatically: $obj.asancestor Without actually changing their implementation details (only the type that Perl currently thinks it's dealing with

Re: Another quick one: .asancestor

2006-07-12 Thread Larry Wall
On Wed, Jul 12, 2006 at 12:51:57PM -0400, Aaron Sherman wrote: : I would assume that all classes automatically define: : : multi submethod *infix:as ($self: $?CLASS) { $self } Hmm, as is really only intended for explicit type mutation (which can work either by role mixin or by new object