POV-Ray : Newsgroups : povray.beta-test : function declaration and namespace : Re: function declaration and namespace Server Time
30 Jul 2024 04:24:57 EDT (-0400)
  Re: function declaration and namespace  
From:
Date: 7 Jan 2002 07:27:35
Message: <sj4j3ucmp9do8nlr46a56cf09bu95jrh6m@4ax.com>
On Mon, 07 Jan 2002 13:15:30 +0100, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> > below script stops at header of macro with message
> > "Expected 'identifier or expression.', function_id found instead"
> >
> > #local F=function{x}
> > #macro P(F) #end
>
> Works as it should.  Please refer to the documentation.

6.2.8.1: "PARAM_IDENTs are a list of zero or more formal parameter identifiers
separated by commas and enclosed by parentheses".

F is formal in local namespace of macro P for me and should works just like
below script:

#local F=function{x}
#macro P(C) #local F=C; #end
P(1)

Is there any other place in documentation where it is precised ?

ABX


Post a reply to this message

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