POV-Ray : Newsgroups : povray.general : bitwise_.. in funtions? : Re: bitwise_.. in funtions? Server Time
23 Apr 2024 13:27:55 EDT (-0400)
  Re: bitwise_.. in funtions?  
From: jceddy
Date: 9 Jul 2022 12:25:00
Message: <web.62c9aabafd43e900864166f75d51d79c@news.povray.org>
"jceddy" <jce### [at] gmailcom> wrote:
> >       function{bitwise_xor(x, y, z)}
>
> I don't think this a bug so much as unsupported. Just FYI, it should probably be
> a feature request rather than a bug report.
>
> Also, the documentation says that these functions treat the inputs as integers.
> Is that what you are expecting?

Bald Eagle is exactly right as to why this isn't working, BTW.
For function{} there is a separate function parser that is pretty restrictive,
and it will not support calling things like bitwise_xor(), trace(), etc. It only
supports numerical values, operators, variables/parameters, and references to
other defined function names. So for this to work, someone would need to define
a "built-in" f_bitwise_xor function (for example), that you could then call in
function blocks.

You would indeed need to "roll your own" using only operators and simple
variables.


Post a reply to this message

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