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
|