|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
We had a discussion about this earlier, but it's so old that I wanted to
post this in a new thread so it wouldn't be overlooked; I hope that's ok.
We talked about precedence issues with the ^ operator. I accept whatever the
POV-Ray team chooses to do with that issue (i assume they'll leave it as
is); however, I was just looking in "6.1.3.3 Float Operators" and noticed
that it's not in there anywhere. There's a whole paragraph in there about
how POV-Ray treats some operator precedences differently than most other
languages do.
Anyway, I think it would be a good idea to add the ^ operator to this
section of the docs, and at the same time give a quick explanation of the
reason for its lower precedence than the unary - operator, maybe also
mentioning the unexpected behavior I ran across.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3cfb131e@news.povray.org> , "Slime" <slm### [at] slimelandcom> wrote:
> We had a discussion about this earlier, but it's so old that I wanted to
> post this in a new thread so it wouldn't be overlooked; I hope that's ok.
>
> We talked about precedence issues with the ^ operator. I accept whatever the
> POV-Ray team chooses to do with that issue (i assume they'll leave it as
> is); however, I was just looking in "6.1.3.3 Float Operators" and noticed
> that it's not in there anywhere. There's a whole paragraph in there about
> how POV-Ray treats some operator precedences differently than most other
> languages do.
>
> Anyway, I think it would be a good idea to add the ^ operator to this
> section of the docs, and at the same time give a quick explanation of the
> reason for its lower precedence than the unary - operator, maybe also
> mentioning the unexpected behavior I ran across.
This operator has been removed in RC 6.
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thorsten Froehlich wrote:
> This operator has been removed in RC 6.
Why?
--
Felix Wiemann
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Felix Wiemann schrieb:
> Thorsten Froehlich wrote:
> > This operator has been removed in RC 6.
>
> Why?
> --
> Felix Wiemann
Probably because its unexpected use and because you can do
similiar with pow(X,Y)... Which would be expected behaviour...
Just an educated guess though...
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tim Nikias wrote:
>
> Felix Wiemann schrieb:
>
> > Thorsten Froehlich wrote:
> > > This operator has been removed in RC 6.
> >
> > Why?
> > --
> > Felix Wiemann
>
> Probably because its unexpected use and because you can do
> similiar with pow(X,Y)... Which would be expected behaviour...
That pretty much sums it up. It boils down to design consistency and
the desire to minimize endless debate on the order of operator precedence.
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> ...
> That pretty much sums it up. It boils down to design consistency and
> the desire to minimize endless debate on the order of operator precedence.
Woohoo! I'm a genius! ;)
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Mon, 03 Jun 2002 07:38:39 -0700, Ken <tyl### [at] pacbellnet> wrote:
> That pretty much sums it up. It boils down to design consistency and
> the desire to minimize endless debate on the order of operator precedence.
Moreover I have noticed problems (probably not reported yet) that ^ operator
caused crash when used in something like G^.5 with G=-0.0. The same expression
with abs(G)^.5 or sqrt(G) worked fine or returned error.
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> This operator has been removed in RC 6.
Wow. Well, never mind then. =) Too bad, I liked the ease of use it provided.
Will it still work inside functions? (As a function operator, not an SDL
one?)
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |