# How to reference a variable within a struct

**URL:** <https://discourse.julialang.org/t/how-to-reference-a-variable-within-a-struct/76135>\
**Category:** General Usage\
**Tags:** struct\
**Created:** [February 10, 2022, 1:17am UTC](https://discourse.julialang.org/t/how-to-reference-a-variable-within-a-struct/76135 "2022-02-10T01:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [February 10, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-reference-a-variable-within-a-struct/76135/5 "2022-02-10T13:48:18Z")

</div>

Maybe [this](https://discourse.julialang.org/t/is-it-appropriate-to-say-a-variable-is-a-label-or-box/46068/19) will help you to form a mental model

---

_[View the full topic](https://discourse.julialang.org/t/how-to-reference-a-variable-within-a-struct/76135)._
