I have strings in context of symbolic diffferentiation. Therefore I need to evaluate strings which contain local variables.
In the manual to Metaprogramming is this example:
macro zerox() return esc(:(x = 0)) end function foo() x = 1 @zerox x # is zero end
But why doesn’t work that version?
macro zerox(string) return esc(string) end function foo() x = 1 b = parse("x = 0") @zerox(b) x # is now one end
I really appreciate your help!