POV-Ray : Newsgroups : povray.advanced-users : ?: : Re: ?: Server Time
28 Jul 2024 14:19:40 EDT (-0400)
  Re: ?:  
From: Andrew the Orchid
Date: 28 Feb 2005 16:24:46
Message: <42238c1e$1@news.povray.org>
>   While it might not be very clear from the documentation (it should
> perhaps be), the SDL and the user-defined functions are basically two
> completely different and independent languages. They somewhat resemble
> each other, but the user-defined functions are basically a language
> inside the SDL, not SDL itself. They are even interpreted at
> completely different levels. For this reason not everything that
> works in the SDL works in the user-defined functions.
>   You can create the body of a user-defined function using SDL, but
> that's just kind of user-defined function metaprogramming, that is,
> a program (in a different language) which creates a program (in the
> other language).

Yeah - directives execute at parse time, functions execute at runtime.

I think in this case it's more a question of it not being immediately 
obviouse that one construct belongs to one set, and the other belongs to 
another... (I only checked the function reference)


Post a reply to this message

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