I have now found a way to do several nested
calls of macros that passes arrays to each other
(like in the last macro below), without
getting error messages and without having to
make global declarations of local variables.
I will post my "solution" here if anyone is
interested.
Regards
Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html
Tor Olav Kristensen wrote:
>
> ...I want to be
> able to replace macros like e.g. this one:
>
> #macro Minv(MM)
>
> #local NN = array[3]
> #local PP = array[3]
> #local QQ = array[3]
> #local s = 1/Mdet(MM);
> #local NN = Mcof(MM)
> #local PP = Mtrans(NN)
> #local QQ = Mscale(s, PP)
>
> QQ
>
> #end
>
> with macors like this one:
>
> #macro Minv(MM)
>
> Mscale(1/Mdet(MM), Mtrans(Mcof(MM)))
>
> #end
>
Post a reply to this message
|