POV-Ray : Newsgroups : povray.bugreports : unexpected evaluation of #if(...)? : Re: unexpected evaluation of #if(...)? Server Time
14 Mar 2025 08:03:52 EDT (-0400)
  Re: unexpected evaluation of #if(...)?  
From: Bald Eagle
Date: 8 Mar 2025 08:20:00
Message: <web.67cc436329b385b71f9dae3025979125@news.povray.org>
"ingo" <nomail@nomail> wrote:

> But not always straight forward,

> it needs some thought and the code is way more complex than this. (#switch #case
> can be an alternative after turning the conditions into "states")


Maybe fall back onto using some small helper macros just to keep the statements
short and the logic straight.

Or, potentially what you could do is multiply the pseudo-Boolean values instead
of using the "&" operator.

0*0 = 0
0*1=1
1*0=0

- BW


Post a reply to this message

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