WrappedMacroResultException when a macro is used in the arguments to TABLE inside a routine
Description
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Zilf.Interpreter.Values.WrappedMacroResultException: Macro result was not unwrapped before usage
By the time ZBuiltins.TableOp calls c.form.Eval(), c.form contains a ZilMacroResult obtained by expanding the macro, but the value returned by the macro hasn’t been unwrapped.
By the time
ZBuiltins.TableOp
callsc.form.Eval()
,c.form
contains aZilMacroResult
obtained by expanding the macro, but the value returned by the macro hasn’t been unwrapped.