On Sep 25, 2016 6:57 PM, "Marius Millea" <mariusmil...@gmail.com> wrote: > > I can't figure out why this doesn't work: > > julia> macro outer() > quote > macro inner() > end > @inner > end > end > > > julia> @outer > ERROR: UndefVarError: @inner not defined > > > > Could it be a bug (I'm on 0.5) or am I missing something about how macros work?
It's not a bug, the whole expression needs to be expand we before it's evaluate so the macro is not defined yet