Fri Nov 22 00:58:49 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2011-03-01

HANGOUT

2024-11-22 | 2024-10-22 | 2024-09-22 | 2024-08-22 | 2024-07-22 | 2024-06-22 | 2024-05-22 | 2024-04-22 | 2024-03-22 | 2024-02-22 | 2024-01-22 | 2023-12-22 | 2023-11-22 | 2023-10-22 | 2023-09-22 | 2023-08-22 | 2023-07-22 | 2023-06-22 | 2023-05-22 | 2023-04-22 | 2023-03-22 | 2023-02-22 | 2023-01-22 | 2022-12-22 | 2022-11-22 | 2022-10-22 | 2022-09-22 | 2022-08-22 | 2022-07-22 | 2022-06-22 | 2022-05-22 | 2022-04-22 | 2022-03-22 | 2022-02-22 | 2022-01-22 | 2021-12-22 | 2021-11-22 | 2021-10-22 | 2021-09-22 | 2021-08-22 | 2021-07-22 | 2021-06-22 | 2021-05-22 | 2021-04-22 | 2021-03-22 | 2021-02-22 | 2021-01-22 | 2020-12-22 | 2020-11-22 | 2020-10-22 | 2020-09-22 | 2020-08-22 | 2020-07-22 | 2020-06-22 | 2020-05-22 | 2020-04-22 | 2020-03-22 | 2020-02-22 | 2020-01-22 | 2019-12-22 | 2019-11-22 | 2019-10-22 | 2019-09-22 | 2019-08-22 | 2019-07-22 | 2019-06-22 | 2019-05-22 | 2019-04-22 | 2019-03-22 | 2019-02-22 | 2019-01-22 | 2018-12-22 | 2018-11-22 | 2018-10-22 | 2018-09-22 | 2018-08-22 | 2018-07-22 | 2018-06-22 | 2018-05-22 | 2018-04-22 | 2018-03-22 | 2018-02-22 | 2018-01-22 | 2017-12-22 | 2017-11-22 | 2017-10-22 | 2017-09-22 | 2017-08-22 | 2017-07-22 | 2017-06-22 | 2017-05-22 | 2017-04-22 | 2017-03-22 | 2017-02-22 | 2017-01-22 | 2016-12-22 | 2016-11-22 | 2016-10-22 | 2016-09-22 | 2016-08-22 | 2016-07-22 | 2016-06-22 | 2016-05-22 | 2016-04-22 | 2016-03-22 | 2016-02-22 | 2016-01-22 | 2015-12-22 | 2015-11-22 | 2015-10-22 | 2015-09-22 | 2015-08-22 | 2015-07-22 | 2015-06-22 | 2015-05-22 | 2015-04-22 | 2015-03-22 | 2015-02-22 | 2015-01-22 | 2014-12-22 | 2014-11-22 | 2014-10-22 | 2014-09-22 | 2014-08-22 | 2014-07-22 | 2014-06-22 | 2014-05-22 | 2014-04-22 | 2014-03-22 | 2014-02-22 | 2014-01-22 | 2013-12-22 | 2013-11-22 | 2013-10-22 | 2013-09-22 | 2013-08-22 | 2013-07-22 | 2013-06-22 | 2013-05-22 | 2013-04-22 | 2013-03-22 | 2013-02-22 | 2013-01-22 | 2012-12-22 | 2012-11-22 | 2012-10-22 | 2012-09-22 | 2012-08-22 | 2012-07-22 | 2012-06-22 | 2012-05-22 | 2012-04-22 | 2012-03-22 | 2012-02-22 | 2012-01-22 | 2011-12-22 | 2011-11-22 | 2011-10-22 | 2011-09-22 | 2011-08-22 | 2011-07-22 | 2011-06-22 | 2011-05-22 | 2011-04-22 | 2011-03-22 | 2011-02-22 | 2011-01-22 | 2010-12-22 | 2010-11-22 | 2010-10-22 | 2010-09-22 | 2010-08-22 | 2010-07-22 | 2010-06-22 | 2010-05-22 | 2010-04-22 | 2010-03-22 | 2010-02-22 | 2010-01-22 | 2009-12-22 | 2009-11-22 | 2009-10-22 | 2009-09-22 | 2009-08-22 | 2009-07-22 | 2009-06-22 | 2009-05-22 | 2009-04-22 | 2009-03-22 | 2009-02-22 | 2009-01-22 | 2008-12-22 | 2008-11-22 | 2008-10-22 | 2008-09-22 | 2008-08-22 | 2008-07-22 | 2008-06-22 | 2008-05-22 | 2008-04-22 | 2008-03-22 | 2008-02-22 | 2008-01-22 | 2007-12-22 | 2007-11-22 | 2007-10-22 | 2007-09-22 | 2007-08-22 | 2007-07-22 | 2007-06-22 | 2007-05-22 | 2007-04-22 | 2007-03-22 | 2007-02-22 | 2007-01-22 | 2006-12-22 | 2006-11-22 | 2006-10-22 | 2006-09-22 | 2006-08-22 | 2006-07-22 | 2006-06-22 | 2006-05-22 | 2006-04-22 | 2006-03-22 | 2006-02-22 | 2006-01-22 | 2005-12-22 | 2005-11-22 | 2005-10-22 | 2005-09-22 | 2005-08-22 | 2005-07-22 | 2005-06-22 | 2005-05-22 | 2005-04-22 | 2005-03-22 | 2005-02-22 | 2005-01-22 | 2004-12-22 | 2004-11-22 | 2004-10-22 | 2004-09-22 | 2004-08-22 | 2004-07-22 | 2004-06-22 | 2004-05-22 | 2004-04-22 | 2004-03-22 | 2004-02-22 | 2004-01-22 | 2003-12-22 | 2003-11-22 | 2003-10-22 | 2003-09-22 | 2003-08-22 | 2003-07-22 | 2003-06-22 | 2003-05-22 | 2003-04-22 | 2003-03-22 | 2003-02-22 | 2003-01-22 | 2002-12-22 | 2002-11-22 | 2002-10-22 | 2002-09-22 | 2002-08-22 | 2002-07-22 | 2002-06-22 | 2002-05-22 | 2002-04-22 | 2002-03-22 | 2002-02-22 | 2002-01-22 | 2001-12-22 | 2001-11-22 | 2001-10-22 | 2001-09-22 | 2001-08-22 | 2001-07-22 | 2001-06-22 | 2001-05-22 | 2001-04-22 | 2001-03-22 | 2001-02-22 | 2001-01-22 | 2000-12-22 | 2000-11-22 | 2000-10-22 | 2000-09-22 | 2000-08-22 | 2000-07-22 | 2000-06-22 | 2000-05-22 | 2000-04-22 | 2000-03-22 | 2000-02-22 | 2000-01-22 | 1999-12-22

Key: Value:

Key: Value:

MESSAGE
DATE 2011-03-15
FROM Ruben Safir
SUBJECT Subject: [NYLXS - HANGOUT] [ruben@mrbrklyn.com: Re: this compared to NULL]
----- Forwarded message from Ruben Safir -----

Date: Tue, 15 Mar 2011 17:04:20 -0400
From: Ruben Safir
To: Billy
Cc: Ruben Safir
Subject: Re: this compared to NULL
User-Agent: Mutt/1.5.20 (2009-06-14)

On Tue, Mar 15, 2011 at 03:54:07PM -0400, Billy wrote:
> On Tue, Mar 15, 2011 at 3:44 PM, Ruben Safir wrote:
> > On Tue, Mar 15, 2011 at 01:06:56PM -0400, Billy wrote:
> >> You're trying to return NULL from a method that returns MESSAGE.
> >>
> >> That's not going to work.
> >> It has nothing to do with the comparison: this==NULL
> >> This would be clear if you used newlines in your code.
> >>
> >> There's no great advantage to squishing a method onto one line,
> >> and it makes diagnostics harder to pinpoint.
> >>
> >
> > Yeah - I debugged it to that problem by doing exactly as you said and
> > breaking it up on multiple lines. ?But now I'm perplexed as to the best
> > solution.
> >
> > I think that this is best fixed using a cast in the LIST object and then
> > I need to add a constructor for an integer for MESSAGES.
> >
> > I was going to see how the strings library does this and maybe emulate
> > that.
>
> The 'this' pointer won't ever be NULL, unless you're doing something weird.

It can be, at least in this case. Specifically, the next NODE is
defined as NULL in the linked list and at one point I do a look ahead

obj->next()->value();

On the last link, next_ is assigned NULL. When it looks for a value, if
one isn't constructed, then it segfaults. The solution to this has been
so far to just return NULL as a value if this is NULL


> How would the method even get called? By dereferencing a NULL pointer?
> That's undefined behavior, and you don't have to support it.
> You absolutely don't have to support the 'else' case.
> There is a reason why it's hard to do: it doesn't make sense to do it. :)
>
> assert(this!=NULL) or something if you must, but don't return something
> artificial.
>
> > There is another puzzle that is bothering me. ?I had a bug that the
> > compiler didn't pick up and I don't know why.
> >
> > The method value originally ended with a semicolon, which is something
> > only a class should do, and nothing complained and everything initially
> > worked (I initially just yanked the declaration from the Class and
> > forgot to remove the semicolon). ?I believe that becuse it is a template
> > class that this error wasn't picked up, bt I'm not certain how this
> > affected the original code.
>
> It didn't affect the code at all..
> A stray semicolon isn't illegal, even in global scope.
>

Even if it is after the }

>
> > Ruben
> >>
> >> On Tue, Mar 15, 2011 at 2:17 AM, Ruben Safir wrote:
> >> > I just realized you don't have the MYSQL setup, but here is the compiler
> >> > output
> >> >
> >> > || g++ ? -Wall -ggdb -I/usr/local/include/mysql
> >> > -I/usr/local/include/mysql++ -c linklist.cpp
> >> > || g++ ?-Wall -ggdb -I/usr/local/include/mysql
> >> > -I/usr/local/include/mysql++ -c linklist_main.cpp
> >> > || In file included from linklist_main.cpp:1:
> >> > || linklist.h: In member function ?unk CHAINLIST::NODE::value()
> >> > [with unk = MESSAGE]?:
> >> > linklist.h|154| instantiated from ?void
> >> > CHAINLIST::LIST::display(std::ostream&) [with unk = MESSAGE]?
> >> > linklist_main.cpp|312| instantiated from here
> >> > linklist.h|43| error: conversion from ?int? to non-scalar type ?MESSAGE?
> >> > requested
> >> > || make: *** [linklist_main.o] Error 1
> >> >
> >> >
> >> > On Tue, Mar 15, 2011 at 01:59:08AM -0400, Ruben Safir wrote:
> >> >> Try to compile this. ?It seems to be telling me that I can't compare
> >> >> this to NULL which it has done just fine with the string<> library
> >> >> and otherwise.
> >> >>
> >> >> I'm at a loss to the problem.
> >> >>
> >> >> Ruben
> >> >> --
> >> >> http://www.mrbrklyn.com - Interesting Stuff
> >> >> http://www.nylxs.com - Leadership Development in Free Software
> >> >>
> >> >> So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world ?- RI Safir 1998
> >> >>
> >> >> http://fairuse.nylxs.com ?DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
> >> >>
> >> >> "Yeah - I write Free Software...so SUE ME"
> >> >>
> >> >> "The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
> >> >>
> >> >> "> I'm an engineer. I choose the best tool for the job, politics be damned.<
> >> >> You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. ?I guess you missed that one."
> >> >>
> >> >> ? Copyright for the Digital Millennium
> >> >
> >> >
> >> >
> >> > --
> >> > http://www.mrbrklyn.com - Interesting Stuff
> >> > http://www.nylxs.com - Leadership Development in Free Software
> >> >
> >> > So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world ?- RI Safir 1998
> >> >
> >> > http://fairuse.nylxs.com ?DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
> >> >
> >> > "Yeah - I write Free Software...so SUE ME"
> >> >
> >> > "The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
> >> >
> >> > "> I'm an engineer. I choose the best tool for the job, politics be damned.<
> >> > You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. ?I guess you missed that one."
> >> >
> >> > ? Copyright for the Digital Millennium
> >> >
> >>
> >>
> >>
> >> --
> >> ?n??uop ?ll?q
> >
> > --
> > http://www.mrbrklyn.com - Interesting Stuff
> > http://www.nylxs.com - Leadership Development in Free Software
> >
> > So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world ?- RI Safir 1998
> >
> > http://fairuse.nylxs.com ?DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
> >
> > "Yeah - I write Free Software...so SUE ME"
> >
> > "The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
> >
> > "> I'm an engineer. I choose the best tool for the job, politics be damned.<
> > You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. ?I guess you missed that one."
> >
> > ? Copyright for the Digital Millennium
> >
>
>
>
> --
> ?n??uop ?ll?q

--
http://www.mrbrklyn.com - Interesting Stuff
http://www.nylxs.com - Leadership Development in Free Software

So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998

http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002

"Yeah - I write Free Software...so SUE ME"

"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."

"> I'm an engineer. I choose the best tool for the job, politics be damned.<
You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."

? Copyright for the Digital Millennium

----- End forwarded message -----

  1. 2011-03-01 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Workshop / Hacking Society (Smalltalk, C++, Python) Tuesday March 1 6:00PM-8:00PM
  2. 2011-03-01 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Next Meeting
  3. 2011-03-01 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Next Meeting
  4. 2011-03-01 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Next Meeting
  5. 2011-03-02 Paul Robert Marino <prmarino1-at-gmail.com> Re: [NYLXS - HANGOUT] Next Meeting
  6. 2011-03-02 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Next Meeting
  7. 2011-03-02 swd <sderrick-at-optonline.net> Subject: [NYLXS - HANGOUT] Justice eyes Microsoft-Novell patent deal
  8. 2011-03-03 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Next Meeting
  9. 2011-03-03 From: "Paul Robert Marino" <prmarino1-at-gmail.com> Re: [NYLXS - HANGOUT] Next Meeting
  10. 2011-03-03 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Next Meeting
  11. 2011-03-07 Michael L Richardson <mlr52-at-michaellrichardson.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  12. 2011-03-08 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  13. 2011-03-08 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  14. 2011-03-08 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  15. 2011-03-08 Elfen Magix <elfen_magix-at-yahoo.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  16. 2011-03-08 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Free Software Healthcare initiative
  17. 2011-03-08 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  18. 2011-03-08 From: "Paul Robert Marino" <prmarino1-at-gmail.com> Re: [NYLXS - HANGOUT] NYLXS ANNOUNCMENT - Please Pass it on
  19. 2011-03-10 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] HP Touch Pad
  20. 2011-03-10 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] NYLXS Meeting for Classes Planning and Workshop
  21. 2011-03-15 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Workshop / Hacking Society (Smalltalk, C++, Python) Tuesday March 15 6:00PM-8:00PM
  22. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [billy.donahue-at-gmail.com: Namespaces and the Interface Principle]
  23. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: Namespaces and the Interface Principle]
  24. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: this compared to NULL]
  25. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [billy.donahue-at-gmail.com: Re: this compared to NULL]
  26. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: this compared to NULL]
  27. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: [hack] NYLUG Workshop / Hacking Society,
  28. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: [hack] NYLUG Workshop / Hacking Society,
  29. 2011-03-15 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Re: this compared to NULL]
  30. 2011-03-16 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Work
  31. 2011-03-17 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [nytdirect-at-nytimes.com: An important notice for NYTimes.com
  32. 2011-03-17 swd <sderrick-at-optonline.net> RE: [NYLXS - HANGOUT] [nytdirect-at-nytimes.com: An important notice for
  33. 2011-03-17 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Quotes
  34. 2011-03-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [hery.ramilison-at-oracle.com: MySQL Community Server 5.5.10 has been
  35. 2011-03-18 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] Free Software Round Table TOMORROW, Saturday March 19 10-11 PM (streaming live)
  36. 2011-03-20 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Nulls and Zeros in C++]
  37. 2011-03-21 From: "Ron Guerin" <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] [Fwd: [Debian-NYC] Linux Installation Festival * April 2 12pm - 5pm]
  38. 2011-03-22 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: Book Burning continues thanks to the Feds]
  39. 2011-03-23 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Presents: 4/20 -at- 6:30PM Erik Kastner and John Goulah on Deployinator: How Etsy removed the pain and fear from deploying code
  40. 2011-03-26 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] HP WebOS threats
  41. 2011-03-27 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  42. 2011-03-27 Paul Robert Marino <prmarino1-at-gmail.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  43. 2011-03-27 From: "Ron Guerin" <ron-at-vnetworx.net> Re: [NYLXS - HANGOUT] HP WebOS threats
  44. 2011-03-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  45. 2011-03-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  46. 2011-03-28 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [jcharb-at-clear.net: Re: GNU/Linux_1: Introduction to GNU/Linux]
  47. 2011-03-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  48. 2011-03-28 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] HP WebOS threats
  49. 2011-03-29 Ron Guerin <ron-at-vnetworx.net> Subject: [NYLXS - HANGOUT] NYLUG Workshop / Hacking Society (Smalltalk, C++, Python) Tuesday March 29 6:00PM-8:00PM
  50. 2011-03-29 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [meissner-at-suse.de: [security-announce] SUSE Security Announcement:
  51. 2011-03-29 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [evan-at-snarc.net: Vintage Computer Festival East 7.0 - May 14-15]

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!