# How to know if top-level

**URL:** https://discourse.julialang.org/t/how-to-know-if-top-level/79234
**Category:** General Usage
**Created:** [April 8, 2022, 6:03pm UTC](https://discourse.julialang.org/t/how-to-know-if-top-level/79234 "2022-04-08T18:03:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![marius311](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marius311/32/3953_2.png) [@marius311](https://discourse.julialang.org/u/marius311)
#### Post date: [April 8, 2022, 6:06pm UTC](https://discourse.julialang.org/t/how-to-know-if-top-level/79234/2 "2022-04-08T18:06:59Z")

</div>

I wish there was something better than this kludge but afaik there’s not: [Is there a way to determine whether code is toplevel? - #3 by marius311](https://discourse.julialang.org/t/is-there-a-way-to-determine-whether-code-is-toplevel/39939/3)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-know-if-top-level/79234)._
