|
![](/i/fill.gif) |
In article <3bdab763@news.povray.org> , "Rune" <run### [at] mobilixnet dk>
wrote:
> Thorsten, it's not that I don't understand how function parameters work,
> what I don't understand is why they're designed to work that way.
Because POV-Ray directives are designed to work this way. They sit "on top"
of your scene. Contrary to macros functions are _part_of_the_scene_ and as
such are and have to be handled different from macros.
Would you expect the scene below to work as well? - It would be a
consequence of what you are asking for (as I explained above) and obviously
does not make sense!
#declare foo = function(a,b,c)
{
#while(a > 0)
(b - a) *
#declare a = a - 1;
#end
c
}
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |