# Variable not declared

**URL:** https://discourse.julialang.org/t/variable-not-declared/51956
**Category:** New to Julia
**Created:** [December 17, 2020, 2:39am UTC](https://discourse.julialang.org/t/variable-not-declared/51956 "2020-12-17T02:39:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vaeli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vaeli/32/19877_2.png) [@vaeli](https://discourse.julialang.org/u/vaeli)
#### Post date: [December 17, 2020, 2:39am UTC](https://discourse.julialang.org/t/variable-not-declared/51956/1 "2020-12-17T02:39:25Z")

</div>

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.

Tambet

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [December 17, 2020, 4:16am UTC](https://discourse.julialang.org/t/variable-not-declared/51956/2 "2020-12-17T04:16:41Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [December 17, 2020, 8:03am UTC](https://discourse.julialang.org/t/variable-not-declared/51956/3 "2020-12-17T08:03:39Z")

</div>

“The return of the scoping issue” 🙂

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [December 17, 2020, 8:11am UTC](https://discourse.julialang.org/t/variable-not-declared/51956/4 "2020-12-17T08:11:03Z")

</div>

See [Unexpected scope issue](https://discourse.julialang.org/t/unexpected-scope-issue/30145) and [https://github.com/JuliaLang/julia/issues/28789](https://github.com/JuliaLang/julia/issues/28789) and a gazillion other threads here on discourse.

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