I have captured a rule tag in a variable and I’m attempting to use that variable in something like:
$$next = ^next(rejoinder $$rule)
$$pat = ^getRule(pattern $$next)
But the ^next function always fails.
So I guess my first question is, should I expect it to work? Obviously if I hard code a tag then ^next(rejoinder) works perfectly, but I was intended to use this construct in a macro where the tag name is passed as a parameter.
I have seemingly tried many variations in dynamically constructing the statement and using ^eval() but I’ve not got any of them to work. But I also might be misunderstanding the capabilities of ^eval(). The documentation shows an example of using ^eval() to get a variable value through indirection, but not the arbitrary execution of code. So I may be barking up the wrong tree here.