Am 30. Dez 2004 um 21:45 schrieb Craig A. Finseth:
...
How would one go about doing it using plain old GCC and not making a
plugin...
For example something as simple as what was proposed,
int getMyNum(int fnum, int snum)
{
int tnum;
return tnum = fnum + snum;
}
Probably as either:
int getMyNum(int fnum, int snum)
{
int tnum;
tnum = fnum + snum;
return tnum;
}
or:
int getMyNum(int fnum, int snum)
{
return fnum + snum;
}
Why? The first code snippet is perfectly legal. Isn't it?
Moreover, ill usage of = instead of == is a famous error in
C/C++ coding ;-)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|