Doh! I didn't realize it was editable. I will update it with all of my (confirmed) findings so far.<br><br>Thx Yao.<br><br><div class="gmail_quote">On Mon, Aug 9, 2010 at 10:35 PM, Yao G. <span dir="ltr"><<a href="mailto:nospamyao@gmail.com">nospamyao@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Andrei has this errata web page: <a href="http://www.erdani.com/tdpl/errata/index.php?title=Main_Page" target="_blank">http://www.erdani.com/tdpl/errata/index.php?title=Main_Page</a><br>
<br>
I think you should edit the wiki and add them, because here your message will be lost between all the flux of messages.<div><div></div><div class="h5"><br>
<br>
On Mon, 09 Aug 2010 15:29:06 -0500, Andrej Mitrovic <<a href="mailto:andrej.mitrovich@gmail.com" target="_blank">andrej.mitrovich@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The last example:<br>
<br>
override bool opEquals(Object rhs)<br>
{<br>
// the other must be at least a Widget<br>
auto that = cast(Widget) rhs;<br>
if (!that)<br>
return false;<br>
// do they compare equals as Widgets? if not, we're done<br>
if (!super.opEquals(that))<br>
return false;<br>
// is it a TextWidget?<br>
auto that2 = cast(TextWidget) rhs;<br>
// if not, we're done comparing with success<br>
if (!that2)<br>
return true;<br>
// compare as TextWidgets<br>
return text == that.text;<br>
}<br>
<br>
<br>
Last return should be:<br>
<br>
return text == that2.text;<br>
</blockquote>
<br>
<br></div></div><font color="#888888">
-- <br>
Using Opera's revolutionary e-mail client: <a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a><br>
</font></blockquote></div><br>