# Retrieve a value within a do block

**URL:** <https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121>\
**Category:** General Usage\
**Tags:** question, jump\
**Created:** [July 28, 2025, 1:54am UTC](https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121 "2025-07-28T01:54:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [July 28, 2025, 9:33am UTC](https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121/3 "2025-07-28T09:33:04Z")

</div>

Discussed in more detail in [A different do block scope rule exist for `Threads.lock(my_lock)`?](https://discourse.julialang.org/t/a-different-do-block-scope-rule-exist-for-threads-lock-my-lock/131124)

This is unrelated to JuMP.

---

_[View the full topic](https://discourse.julialang.org/t/retrieve-a-value-within-a-do-block/131121)._
