POV-Ray : Newsgroups : povray.general : feature request (regarding &,|) : Re: feature request (regarding &,|) Server Time
8 Aug 2024 16:14:56 EDT (-0400)
  Re: feature request (regarding &,|)  
From: Jérôme Grimbert
Date: 17 Nov 2000 06:50:10
Message: <3A151B82.F3F5DD14@atos-group.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.