digitalmars.D - TDPL Errata: Page 208
- Andrej Mitrovic (24/24) Aug 09 2010 The last example:
- Yao G. (8/28) Aug 09 2010 Andrei has this errata web page:
- Andrej Mitrovic (4/37) Aug 09 2010 Doh! I didn't realize it was editable. I will update it with all of my
- Andrei Alexandrescu (3/5) Aug 09 2010 Perfect. Thank you!
- Andrei Alexandrescu (4/37) Aug 09 2010 Yes please. Andrej, doing so for your past reports would be very much
- Walter Bright (2/4) Aug 09 2010 Should add him to your list of reviewers!
- Andrej Mitrovic (3/8) Aug 09 2010 I thought only Guido van Rossum hide a time machine? :p
- Andrej Mitrovic (11/50) Aug 09 2010 Ok it's done, at least for the confirmed ones.
- Andrej Mitrovic (3/57) Aug 09 2010 Ok I also managed to screw up the tables. How do I escape the "|" charac...
- Andrei Alexandrescu (4/7) Aug 09 2010 I found this with google:
- Andrej Mitrovic (11/19) Aug 09 2010 *facepalm*
- Andrei Alexandrescu (3/14) Aug 09 2010 I tried | and it works to depict a pipe character.
- Andrej Mitrovic (4/19) Aug 09 2010 "
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;
Aug 09 2010
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 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;-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Aug 09 2010
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. <nospamyao gmail.com> 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 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;-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Aug 09 2010
Andrej Mitrovic wrote:Doh! I didn't realize it was editable. I will update it with all of my (confirmed) findings so far.Perfect. Thank you! Andrei
Aug 09 2010
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 gmail.com> wrote:Yes please. Andrej, doing so for your past reports would be very much appreciated. Thanks! AndreiThe 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;
Aug 09 2010
Andrei Alexandrescu wrote:Yes please. Andrej, doing so for your past reports would be very much appreciated. Thanks!Should add him to your list of reviewers!
Aug 09 2010
I thought only Guido van Rossum hide a time machine? :p On Mon, Aug 9, 2010 at 10:51 PM, Walter Bright <newshound2 digitalmars.com>wrote:Andrei Alexandrescu wrote:Yes please. Andrej, doing so for your past reports would be very much appreciated. Thanks!Should add him to your list of reviewers!
Aug 09 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 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 gmail.com> wrote: The last example:Yes please. Andrej, doing so for your past reports would be very much appreciated. Thanks! Andreioverride 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;
Aug 09 2010
Ok I also managed to screw up the tables. How do I escape the "|" character? There's an example with a logical OR and its messing with the html tables. On Mon, Aug 9, 2010 at 11:48 PM, Andrej Mitrovic <andrej.mitrovich gmail.comwrote: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&artic e_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 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 gmail.com> wrote: The last example:Yes please. Andrej, doing so for your past reports would be very much appreciated. Thanks! Andreioverride 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;
Aug 09 2010
Andrej Mitrovic wrote:Ok I also managed to screw up the tables. How do I escape the "|" character? There's an example with a logical OR and its messing with the html tables.I found this with google: http://www.mediawiki.org/wiki/Extension:Pipe_Escape Andrei
Aug 09 2010
*facepalm* I thought HTML was supossed to be easy.. I keep getting back "Template:!" with a link. I can't get it to work. That also seems to be an extension tha= t needs to be installed, no? Tell me, to these look similar to the OR symbol for you?: =C9=C9 It's a "Greek capital letter iota", it looks exactly the same as the normal || to me, but doesn't need to be escaped. On Tue, Aug 10, 2010 at 12:02 AM, Andrei Alexandrescu < SeeWebsiteForEmail erdani.org> wrote:Andrej Mitrovic wrote:Ok I also managed to screw up the tables. How do I escape the "|" character? There's an example with a logical OR and its messing with the html tables.I found this with google: http://www.mediawiki.org/wiki/Extension:Pipe_Escape Andrei
Aug 09 2010
Andrej Mitrovic wrote:*facepalm* I thought HTML was supossed to be easy.. I keep getting back "Template:!" with a link. I can't get it to work. That also seems to be an extension that needs to be installed, no? Tell me, to these look similar to the OR symbol for you?: ии It's a "Greek capital letter iota", it looks exactly the same as the normal || to me, but doesn't need to be escaped.Andrei
Aug 09 2010
Fixed. 2010/8/10 Andrei Alexandrescu <SeeWebsiteForEmail erdani.org>Andrej Mitrovic wrote:"*facepalm* I thought HTML was supossed to be easy.. I keep getting back "Template:!=thatwith a link. I can't get it to work. That also seems to be an extension =needs to be installed, no? Tell me, to these look similar to the OR symbol for you?: =C9=C9 It's a "Greek capital letter iota", it looks exactly the same as the normal || to me, but doesn't need to be escaped.Andrei
Aug 09 2010