(MegacoParser *) is a typecast. What it means is that on the line
if (currentParser == (MegacoParser *)0)
currentParser is checked against the value of 0 AS IF IT WAS A POINTER TO
TYPE MegacoParser.
Why this cast is in there I don't know, as 0 is 0 anywhere surely?
That's what I reckon anyway.
>From: Somanathan Kaimal <som...@wi...>
>To: "'dev...@li...'"
><dev...@li...>
>Subject: [Dev-C++] FW: What does this mean ?
>Date: Thu, 20 Mar 2003 16:27:49 +0530
>
>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
>
_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.co.uk
|