You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't access to the variable in object macro after just defining the variable #137
Background: tags are processed using regular expressions and are done in a certain order. The only set of tags that can be nested in arbitrary order are the variable-setter tags like <get>, <set>, <add> and so on; but that's because each of those tags conveniently starts and ends with <angle brackets> so a recursive regexp can handle them from inner-most to outer-most. But tags like <call>...</call> have inner contents and would be more tricky to handle that way.
Activity
kirsle commentedon Jan 4, 2020
Unfortunately, this syntax doesn't work; the
<call>tag is the very last one processed after tags like<get>and<set>had already been handled.However, you can set user variables from inside the object macro itself as a workaround:
Background: tags are processed using regular expressions and are done in a certain order. The only set of tags that can be nested in arbitrary order are the variable-setter tags like
<get>,<set>,<add>and so on; but that's because each of those tags conveniently starts and ends with<angle brackets>so a recursive regexp can handle them from inner-most to outer-most. But tags like<call>...</call>have inner contents and would be more tricky to handle that way.