Running the code below gives the error message "ERROR: test_vec not 
defined". Why does this happen? Is it a bug or a feature? (I'm using Julia 
0.2 on Linux.)

Thanks, Bob

 

> test_vec = zeros(4)
> function test_fn()
>     print(test_vec)
>     test_vec = zeros(5)
> end
> test_fn()


Reply via email to