# Return statements and global consts in a struct

**URL:** <https://discourse.julialang.org/t/return-statements-and-global-consts-in-a-struct/57567>\
**Category:** General Usage\
**Created:** [March 19, 2021, 8:46pm UTC](https://discourse.julialang.org/t/return-statements-and-global-consts-in-a-struct/57567 "2021-03-19T20:46:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 20, 2021, 8:06am UTC](https://discourse.julialang.org/t/return-statements-and-global-consts-in-a-struct/57567/3 "2021-03-20T08:06:00Z")

</div>

I also ran into this, see here:

> [@Global const in struct](https://discourse.julialang.org/t/global-const-in-struct/27718/):
>
> In [#32407](https://github.com/JuliaLang/julia/pull/32407) I saw struct \_GLOBAL\_RNG \<: AbstractRNG global const GLOBAL\_RNG = \_GLOBAL\_RNG.instance end Can someone please explain what this does?

---

_[View the full topic](https://discourse.julialang.org/t/return-statements-and-global-consts-in-a-struct/57567)._
