Thank you Isaiah for pointing that out!
On Friday, September 23, 2016 at 12:06:17 PM UTC+8, Isaiah wrote:
>
> Use `global a = ...`
> Please see:
> http://docs.julialang.org/en/latest/manual/variables-and-scoping/#hard-local-scope
>
> global variables are only inherited for reading but not for
Use `global a = ...`
Please see:
http://docs.julialang.org/en/latest/manual/variables-and-scoping/#hard-local-scope
global variables are only inherited for reading but not for writing
On Fri, Sep 23, 2016 at 12:00 AM, K leo wrote:
> Sorry, this is not related to Dict at
Sorry, this is not related to Dict at all. If I replace the "a=get..."
statement with simply "a=2", the global variable is no longer accessible.
What is wrong?
On Friday, September 23, 2016 at 11:52:24 AM UTC+8, K leo wrote:
>
> Calling "get" anywhere in a function makes a global variable