Variable not declared

Can you explain why, in Julia 1.0.3, this code gives error:

A = “”

for x in [1, 2, 3] if 1 == 1 A *= “…” end end

I tested in Julia 1.5, where it works as expected, but I want to work more with a stable version.


New features are purposefully not added to 1.0. That’s why it is a more stable version. If you want a very stable release with all the new features, you should be using the released version (currently 1.5.3)


“The return of the scoping issue” :slight_smile:

See Unexpected scope issue and and a gazillion other threads here on discourse.

BTW, IMO this question doesn’t belong into “Internals & Design” but rather into “Usage” or similar.