|
|
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
|
|