# Creation of function using eval

**URL:** <https://discourse.julialang.org/t/creation-of-function-using-eval/4901>\
**Category:** General Usage\
**Created:** [July 17, 2017, 12:11pm UTC](https://discourse.julialang.org/t/creation-of-function-using-eval/4901 "2017-07-17T12:11:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [July 17, 2017, 12:48pm UTC](https://discourse.julialang.org/t/creation-of-function-using-eval/4901/3 "2017-07-17T12:48:36Z")

</div>

You can define a function that run the rest of the current function and `invokelast` that.  
And no you can’t do better than that since it’s the most the compiler can infer about your code.

---

_[View the full topic](https://discourse.julialang.org/t/creation-of-function-using-eval/4901)._
