On Wednesday, January 13, 2016 at 11:15:25 AM UTC+8, [email protected] wrote: > > IIUC isdefined(:awards) tests for a global variable called awards, so it > won't find a local variable called awards. What are you trying to achieve > with this test? >
Good catch. I'd try to remove that check. Learn something new every day :)
julia> y = 1
1
julia> function foo()
x = 1
println(isdefined(:x))
println(isdefined(:y))
end
foo (generic function with 1 method)
julia> foo()
false
true
