Mail Archives: djgpp/1997/08/12/02:58:29
Charles Krug <charles AT pentek DOT com> wrote:
>Erik Max Francis wrote:
>>
>>
>> These compilers didn't even conform to traditional C, then.
>>
>> --
>The original question that started this round:
>if (first() && second() && third())
> (etc)
>How critical is your application, and how much interaction is there
>between the functions in question?
I've found this in a scanner control library code I needed to use, so
I was just wandering if I could use that code with DJGPP unaltered.
This expression is found many times in the library, but it conforms to
short-circuit requirements, described in other posts : the functions
have to be called in order (first(), second(), third() ) and if any of
them fails, then the functions returns with error message.
Regards.
Victor.
- Raw text -