Ugly, stupid and dangerous. In C it should be if(currentParser==NULL), in
C++ (ifcurrentParser==0).
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Somanathan
Kaimal
Sent: Thursday, March 20, 2003 12:58 PM
To: 'dev...@li...'
Subject: [Dev-C++] FW: What does this mean ?
Hi Techies,
if (!currentParser)
currentParser = parserList.getInstance();
** if (currentParser == (MegacoParser *)0)
{
SWERR aSwerr;
aSwerr.record(__FILE__, __LINE__, "Error: No Parser available.");
return MegacoDefs::fail;
}
How does the line marked with * different from
If(currentParser == 0)
Thanks in adv
Somanathan
|