# Scope of "struct" and "macro"

**URL:** <https://discourse.julialang.org/t/scope-of-struct-and-macro/16714>\
**Category:** General Usage\
**Tags:** documentation\
**Created:** [October 24, 2018, 2:13am UTC](https://discourse.julialang.org/t/scope-of-struct-and-macro/16714 "2018-10-24T02:13:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vic](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vic](https://discourse.julialang.org/u/Vic)\
**Post date:** [October 24, 2018, 2:13am UTC](https://discourse.julialang.org/t/scope-of-struct-and-macro/16714/1 "2018-10-24T02:13:13Z")

</div>

In the tree of scopes at [Scope of Variables · The Julia Language](https://docs.julialang.org/en/v1/manual/variables-and-scoping/) , in branch 5, what means “don’t allow nesting” ?  
That “struct” and “macro” don’t allow nesting of other scope blocks inside them?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [October 24, 2018, 2:36am UTC](https://discourse.julialang.org/t/scope-of-struct-and-macro/16714/2 "2018-10-24T02:36:57Z")

</div>

It means you can only use these constructs at the top-level global scope, not inside of for loops, for example.

---

<div class="post-metadata">

**Author:** ![Vic](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vic](https://discourse.julialang.org/u/Vic)\
**Post date:** [October 24, 2018, 2:41am UTC](https://discourse.julialang.org/t/scope-of-struct-and-macro/16714/3 "2018-10-24T02:41:06Z")

</div>

Thanks. So then that “(don’t allow nesting)” is redundant, strictly speaking, as the fact you state is already mentioned by the 1st branch of the tree
