I think they are mangled for the sake of having hygienic macros by default. I don't know which is the best way to do it, but you can also prevent mangling like this:
macro bar(num) :($(esc(:foo))(x) = $num) end Well, it seemed to work for me, anyway.
