POV-Ray : Newsgroups : povray.general : Why does POV always evaluate both expressions with a '&'? : Re: Why does POV always evaluate both expressions with a '&'? Server Time
7 Aug 2024 17:25:07 EDT (-0400)
  Re: Why does POV always evaluate both expressions with a '&'?  
From: Thorsten Froehlich
Date: 27 Sep 2001 17:43:17
Message: <3bb39d75$1@news.povray.org>
In article <slr### [at] fwicom> , ron### [at] povrayorg (Ron
Parker) wrote:

> I think it's a moot point, as I'm not sure the expression parser could be
> rewritten to do the short-circuit behavior without a bit of pain.

The function parser could in 3.5, but it is pointless right now as its
"logic" operators are really min and max functions.   As for the expression
parser, I don't think it would be easy.  Perhaps just parsing and counting
opening and closing parenthesis would work (but be a bit ugly), but I don't
think it even should be changed...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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