MESSAGE
DATE | 2011-03-15 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] [billy.donahue@gmail.com: Re: this compared to NULL]
|
----- Forwarded message from Billy -----
Date: Tue, 15 Mar 2011 13:06:56 -0400 From: Billy To: Ruben Safir Subject: Re: this compared to NULL
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.
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
----- End forwarded message -----
|
|