|
|
Chris Huff wrote:
>
> In article <3A149BF8.C688E185@hotmail.com>, Pabs <pab### [at] hotmailcom>
> wrote:
>
> > Any one think they (logical operators &,|) shoud be short-circuit logic
> > operators (like &&, || in C/++) so that the following would be possible
>
> POV already has & and | operators that behave as boolean logic
> operators. What exactly do you want? Bit-level operators?
> A "defined()" function would be useful though...I don't think it can be
> done as a macro.
>
No, he wants the behavior the C compiler has when evaluating:
if ((divisor !=0)&&(amount/divisor ...
That is: if the divisor is 0, the division is not even performed
because the left part of the '&&' is false.
Sincerely, I'm against this idea for POV.
(it's ok in C).
Post a reply to this message
|
|