TDPL Errata: Page 208

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Aug 9 14:48:27 PDT 2010


Ok it's done, at least for the confirmed ones.

But I will need someone to take a look at some of my unanswered posts for
confirmation on whether these are errors/bugs:

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=114394
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=114395
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=114397
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=114891(Perhaps
I'm misunderstanding the commet there, but ultimately a Friend
method gets called)


On Mon, Aug 9, 2010 at 10:40 PM, Andrei Alexandrescu <
SeeWebsiteForEmail at erdani.org> wrote:

> Yao G. 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 <
>> andrej.mitrovich at gmail.com> 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;
>>>
>>
> Yes please. Andrej, doing so for your past reports would be very much
> appreciated. Thanks!
>
> Andrei
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100809/240e4733/attachment.html>


More information about the Digitalmars-d mailing list