POV-Ray : Newsgroups : povray.general : pov source gcc3 problem : Re: pov source gcc3 problem Server Time
6 Aug 2024 02:23:18 EDT (-0400)
  Re: pov source gcc3 problem  
From: Pandora
Date: 6 Aug 2002 21:29:29
Message: <3d5077f9$1@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
>
> The other problem is precedence.  If a or b are expressions, they'll be
> substituted directly into the other expression above.  Some expressions
> might not take the substitution so well.  For example, what if you did
> max( c==d?c:d, b )
>

    Which you can fix with brackets (which also fixes all other problems,
other than the efficiency issue (which'll more often than not get handled by
an optimising compiler anyway)).

--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com


Post a reply to this message

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