note
tobyink
<p>There are probably instances where you'd want two methods that behave identically in the parent class, but behave differently in the child class. However, given that the title of this thread mentioned "method <i>aliases</i>", I'm assuming the intention is that <c>legacy_method</c> acts as an alias (i.e. behaves identically) for <c>current_method</c>, unless a child class explicitly overrides <c>legacy_method</c> to make it behave differently.</p>
<div class="pmsig"><div class="pmsig-757127">
<small><small><tt>use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name</tt></small></small>
</div></div>
1054418
1054648