I can see how the following does not work because, presumably, the a
has not been “processed” when b
calls/fallsback on it:
\procedure test(a:"foo", b:"<<a>>") <<b>>
<<test>> desired outcome: foo
…but I am a bit confused why the following does not work. I had expected a
to have been “processed” by the time that b
falls back on it:
\procedure outer(a:"foo")
\procedure inner(b:<<a>>)
<<b>>
\end inner
\end outer
<<outer>> expected outcome: foo
Do I misunderstand procedure nesting? Anything else wrong, or is this just how the earth spins?
My actual use case is a procedure with several optional parameters and I’m trying to avoid to, inside the procedure, having to test which parameters the user has provided values for.
Thanks