POV-Ray : Newsgroups : povray.beta-test : min and max change in beta 10 [engine, doc, include files] : min and max change in beta 10 [engine, doc, include files] Server Time
30 Jul 2024 04:24:02 EDT (-0400)
  min and max change in beta 10 [engine, doc, include files]  
From:
Date: 15 Jan 2002 07:45:07
Message: <tb884ugrfpfo88419c1nhnbhfabkqnkvhq@4ax.com>
POV 3.5 b 10.icl on PII 233 128 MB with NT 4 Sp 6

[ENGINE]

If there is function available in both: function engine and "old-style" parser
then in both it accepts the same syntax. Hovewer after new syntax of min and max
in function engine old behaviour not follow it. I mean below syntax is correct:

#local min3=function(a,b,c){min(a,b,c)}

but below reports parsing error

#local a=min(1,2,3);

However it is according to
http://www.povray.org/working-docs/id000135.html#6_1_3 but I wonder if it is
intentional.

[DOCUMENTATION]

6.1.6 : in syntax frame there is old style min only listed

[INCLUDE FILES]

longer existing of max3 and min3 functions in math.inc could be nonsense when
old min behaviour could be changed

ABX


Post a reply to this message

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