POV-Ray : Newsgroups : povray.beta-test : namespace issue : Re: namespace issue Server Time
29 Jul 2024 10:22:22 EDT (-0400)
  Re: namespace issue  
From: Thorsten Froehlich
Date: 27 May 2002 09:43:41
Message: <3cf2380d@news.povray.org>
In article <3cf23481@news.povray.org> , "Rune" <run### [at] mobilixnetdk>
wrote:

> Design-wise I don't see what
> prevents function parameters to work the same way as macro parameters.
> It sure would be much more convenient. But if it's an internal
> limitation, then of course there's nothing to do about it.

Well, #declares and #macros are processed first, that is why they can be
inserted everywhere with very few restrictions.  The parser cannot know
something has been subsituted by either a macro or a declared value because
that is exactly the point of these directives.  They build the scene the
parser reads.  It is similar to not being able to declare keywords as names.
Function parameters behave just like user defined keywords would in this case.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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