# Pass expression to manipulate local variable

**URL:** <https://discourse.julialang.org/t/pass-expression-to-manipulate-local-variable/79652>\
**Category:** New to Julia\
**Tags:** question, metaprogramming\
**Created:** [April 18, 2022, 8:15pm UTC](https://discourse.julialang.org/t/pass-expression-to-manipulate-local-variable/79652 "2022-04-18T20:15:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [April 18, 2022, 8:45pm UTC](https://discourse.julialang.org/t/pass-expression-to-manipulate-local-variable/79652/4 "2022-04-18T20:45:22Z")

</div>

> [@FireCrumb](#):
>
> So the question remains: how to pass an `Expr` to work on _local scope_ ?

You basically can’t do that but depending on what you need to accomplish, the suggestions here might be useful: [Passing a string into function as a expression - #14 by GunnarFarneback](https://discourse.julialang.org/t/passing-a-string-into-function-as-a-expression/31625/14).

---

_[View the full topic](https://discourse.julialang.org/t/pass-expression-to-manipulate-local-variable/79652)._
