# Variable reference in a function created by a macro

**URL:** https://discourse.julialang.org/t/variable-reference-in-a-function-created-by-a-macro/26722
**Category:** Optimization (Mathematical)
**Tags:** macros, intervals
**Created:** [July 24, 2019, 8:08am UTC](https://discourse.julialang.org/t/variable-reference-in-a-function-created-by-a-macro/26722 "2019-07-24T08:08:49Z")
**Posts on this page:** 1
**Showing post:** 2

<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 24, 2019, 2:44pm UTC](https://discourse.julialang.org/t/variable-reference-in-a-function-created-by-a-macro/26722/2 "2019-07-24T14:44:34Z")

</div>

Please read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) and provide a minimal working example with what you have tried and what you are trying to achieve.

---

_[View the full topic](https://discourse.julialang.org/t/variable-reference-in-a-function-created-by-a-macro/26722)._
