|
![](/i/fill.gif) |
"Ron Parker" <ron### [at] povray org> wrote in message
news:slr### [at] fwi com...
>
> 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
|
![](/i/fill.gif) |