2009/12/12 mike clemow <span dir="ltr">&lt;<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
2009/12/12 Stefan Blixt &lt;<a href="mailto:stefan.blixt@gmail.com">stefan.blixt@gmail.com</a>&gt;:<br>
<div class="im">&gt; Hmm, you shouldn&#39;t have to cast from a subclass to its superclass, should<br>
&gt; you?<br>
<br>
</div>Well, this is my feeling as well.  A foo is-a spam.  The object<br>
reference should work fine this way...<br><br></blockquote><div><br>I agree. Back when I was starting out when classes and so on I did feel that this functionality was actually implied by the docs. I wonder whether that was intentional and that&#39;s actually meant to be how it should eventually work. This is one area where I do feel that the current docs need work. For one thing the &quot;$&quot; operator is only documented in how it casts from float to int, which is in and of itself a exception in that it loses information, unlike other forms of casting that need not lose information.<br>
<br>Kas.<br></div></div>