julia> macro bar(num)
:(foo(x) = $num)
end
julia> @bar 5
foo#27 (generic function with 1 method)julia> foo ERROR: foo not defined It appears that variable/function definitions in macros are mangled somehow. Is there any way to define a function or set a variable in a macro (s.t. that definition/assignment occurs in the calling scope)?
