POV-Ray : Newsgroups : povray.advanced-users : Possible win-pov bug : Possible win-pov bug Server Time
28 Jul 2024 18:12:03 EDT (-0400)
  Possible win-pov bug  
From: Andrew C on Mozilla
Date: 22 Jul 2004 16:16:46
Message: <410020ae$1@news.povray.org>
Well... OK... it's not Earth-shattering...

Try this:

#declare F1 = function(a, b, c, d) {a+b+c+d}
#declare F2 = function(a, b, c, d) {select(F1(a, b), a*b*c*d, a/b-c/d)}

When I try to render this scene, POV-Ray (correctly) complains. It gives 
me an error that says

"Parse Error: Invalid number of parameters: 2 supplied, 4 required!"

However... it highlights the closing bracket of the select() function, 
making it look like that is the function that has 2 parameters but needs 
4. Had me confused for about an hour before I realised that it's 
actually F1() that needs more parameters!

I don't know if this is unique to the select() function. (I would 
imagine not, but I haven't checked.)

(This is with POV-Ray "3.6.0.icl8.win32" on Windows XP - not that I 
imagine it makes much odds to this...)

Andrew @ home.


Post a reply to this message

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