note
moritz
<blockquote>If I simply bless my $dog into LABRADOR then he won't be golden. How can I resolve this situation?</blockquote>
<p>By creating a new LABRADOR object, and using it instead of the old object. You can reuse the attributes from the original DOG object.</p>
<p>Seriously, changing the type of an object is a an usual requirement, and might point to a flaw in your overall design. If a dog is a labrador, it's already born a labrador. Or phrased differently, time-dependent properties should not encoded in the type.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
</div></div>
1024349
1024349