|
|
in news:3BB344D2.8D680A43@gmx.de Christoph Hormann wrote:
> BTW, it would be really nice if passing function names to macros
> worked, this string method looks quite horrible...
>
Ron posted something like this:
#macro Foo( Bar, X )
#declare Y = Bar(X);
#declare Z = Bar(Y);
#end
#declare FUNC=function(n){n+2}
Foo(function(n){FUNC(n)}, 1)
#debug str(Y,5,5)
#debug "\n"
#debug str(Z,5,5)
#debug "\n"
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|