Re: [julia-users] Is this a bug (related to scoping / nested macros)?

2016-09-25 Thread Yichao Yu
On Sep 25, 2016 6:57 PM, "Marius Millea" wrote: > > I can't figure out why this doesn't work: > > julia> macro outer() >quote >macro inner() >end >@inner >end >end > > > julia> @outer > ERROR:

[julia-users] Is this a bug (related to scoping / nested macros)?

2016-09-25 Thread Marius Millea
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