Doh! I didn't realize it was editable. I will update it with all of my (confirmed) findings so far.
Thx Yao. On Mon, Aug 9, 2010 at 10:35 PM, Yao G. <[email protected]> wrote: > Andrei has this errata web page: > http://www.erdani.com/tdpl/errata/index.php?title=Main_Page > > I think you should edit the wiki and add them, because here your message > will be lost between all the flux of messages. > > > On Mon, 09 Aug 2010 15:29:06 -0500, Andrej Mitrovic < > [email protected]> wrote: > > The last example: >> >> override bool opEquals(Object rhs) >> { >> // the other must be at least a Widget >> auto that = cast(Widget) rhs; >> if (!that) >> return false; >> // do they compare equals as Widgets? if not, we're done >> if (!super.opEquals(that)) >> return false; >> // is it a TextWidget? >> auto that2 = cast(TextWidget) rhs; >> // if not, we're done comparing with success >> if (!that2) >> return true; >> // compare as TextWidgets >> return text == that.text; >> } >> >> >> Last return should be: >> >> return text == that2.text; >> > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >
