|
![](/i/fill.gif) |
Thorsten Froehlich wrote:
>
> Skiba <abx### [at] babilon org> wrote:
>
> > This is parsed ok:
> >
> > #macro P(F) #end
> > #local F=function{x}
> >
> > and this not:
> >
> > #local F=function{x}
> > #macro P(F) #end
>
> Ah, now I see. I missed that it wasn't a macro call. I am not sure what it
> is then.
It is just one function declaration and one
macro declaration.
- And the macro's parameter just happens to
have the same name as the function.
I think it should be valid code to write.
Just as this is allowed:
#declare S = sphere { <0, 0, 0>, 1 }
#macro AnyMacro(S)
(2*S)
#end // AnyMacro
#declare A = AnyMacro(4);
Tor Olav
Post a reply to this message
|
![](/i/fill.gif) |