# Weird error in for loop

**URL:** <https://discourse.julialang.org/t/weird-error-in-for-loop/38870>\
**Category:** New to Julia\
**Created:** [May 6, 2020, 9:03am UTC](https://discourse.julialang.org/t/weird-error-in-for-loop/38870 "2020-05-06T09:03:22Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [May 6, 2020, 8:07pm UTC](https://discourse.julialang.org/t/weird-error-in-for-loop/38870/11 "2020-05-06T20:07:53Z")

</div>

> [@catosp](#):
>
> the problem is that I had to dig until I find an answer that should be in documentation

Which documentation?

[This](https://docs.julialang.org/en/v1/base/base/#global)? Or maybe you meant [this](https://docs.julialang.org/en/v1/manual/variables-and-scoping/#Global-Scope-1)? Or perhaps [this](https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-global-variables-1) or [this](https://docs.julialang.org/en/v1/manual/variables-and-scoping/#Local-Scope-1).

Or maybe you missed the previous conversations here on Discourse. [Here’s one](https://discourse.julialang.org/t/confused-about-global-vs-local-scoping-in-for-loops-in-1-0/16318).

---

_[View the full topic](https://discourse.julialang.org/t/weird-error-in-for-loop/38870)._
