[NTG-context] serial definition

Taco Hoekwater taco at elvenkind.com
Tue Jan 3 11:51:50 CET 2006

Peter Rolf wrote:
>>Why do I get K0/V0 for \Get{3}? - it works with \recurselevel!

You need to expand the \Set commands in that first loop,
otherwise you store the literal token \recursevelel inside
the definitions of the Key and Val macros (\setvalue{}{}
autoexpands its first argument, but not its second argument).

When not inside a recursion, \recurselevel expands to the number
0  (zero) in the "manual bit", and you are actually re-evaluating
the macro using the then current \recurselevel definition
when inside the  "looping" bit.

So you need:


I hope this is clear enough?

Cheers, Taco

More information about the ntg-context mailing list