POV-Ray : Newsgroups : povray.beta-test : number of parameters in functions : Re: number of parameters in functions Server Time
4 Nov 2024 13:43:48 EST (-0500)
  Re: number of parameters in functions  
From: Adrien Beau
Date: 19 Sep 2001 11:05:07
Message: <3BA8B421.D667F622@sycomore.fr>
I have not read anything about functions yet, but something
in your code puzzles me. Either you or the POV-Team got it
wrong.

you wrote:
> 
> and it works, therefore I changed it to:
> 
>   #declare func=function{1+2+3}
>   #local New=function{func()}

I feel it should be:

#declare func=function(){1+2+3}
#local New=function{func()}

Again, I've not yet read the docs, but the () are generically
needed for functions without parameters.

Anyway, POV should issue a warning, not crash, so there's
a at least a bug.

-- 
Adrien Beau - adr### [at] freefr - http://adrien.beau.free.fr
 Mes propos n'engagent que moi et en aucun cas mes employeurs


Post a reply to this message

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