POV-Ray : Newsgroups : povray.programming : float constants in functions - bug and bugfix : Re: float constants in functions - bug and bugfix Server Time
6 Oct 2024 14:02:39 EDT (-0400)
  Re: float constants in functions - bug and bugfix  
From: ABX
Date: 5 Nov 2002 12:33:03
Message: <l9vfsu8ohvekatj7gq5012l0pc5rgdgarr@4ax.com>
On Tue, 05 Nov 2002 18:16:52 +0100, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> Well, doesn't this make it a missing feature rather than a bug?

Oh, yes, I have even marked it with MISSED_FLOAT_CONSTANTS_RECOGNITION_PATCH

> Fixing the documentation is probably the better
> solution.

even if it can be easy fixed in sources and does not influence 'execution'
time for functions ?

> Espeically the various "true" and "false" constants are really
> not too useful in functions.

Some internal functions use switches as parameters. For example common SOR
switch. I have found this bug when I patched VM with new types of commands
where some of parameters were switches. Using 'on' is just much more readable
in scripts.

> And "version" isn't a constant!

Yes, my mistake, but why not to add this either as it works in SDL
expressions.

ABX


Post a reply to this message

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