I had the assumption here that you wanted to understand and learn how Julia scope behaved but this is more and more getting into just repeating Another possible solution to the global scope debacle so I’ll just refer to that.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Global scope confusion again | 52 | 6908 | May 17, 2025 | |
| REPL and for loops (scope behavior change) | 42 | 15299 | September 16, 2020 | |
| Explain scoping confusion to a programming beginner | 26 | 3349 | August 11, 2020 | |
| Local variable inside a loop: why it ERRORs | 14 | 434 | September 27, 2025 | |
| Strange loop behavior when assigning variable within loop | 5 | 566 | March 8, 2019 |