[julia-users] Getting into macros nightmare!

2016-05-11 Thread Kristoffer Carlsson
Good reading: http://docs.julialang.org/en/release-0.4/manual/metaprogramming/#hygiene

[julia-users] Getting into macros nightmare!

2016-05-11 Thread Ford Ox
*My struggle with macros* Lets code macro for increment, that should be fairly easy right? x = 33 macro inc(x) :(x = x + 1) end @show @inc x > LoadError: UndefVarError: x not defined Hmm, it's not so easy as I thought, I must be missing some very basic knowledge, lets see whats happening