# Add support for nested functions

**URL:** <https://discourse.myhdl.org/t/add-support-for-nested-functions/198>\
**Category:** Enhancement Request\
**Created:** [June 14, 2017, 12:07pm UTC](https://discourse.myhdl.org/t/add-support-for-nested-functions/198 "2017-06-14T12:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josyb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/josyb/32/5_2.png) [@josyb](https://discourse.myhdl.org/u/josyb)\
**Post date:** [June 14, 2017, 2:28pm UTC](https://discourse.myhdl.org/t/add-support-for-nested-functions/198/2 "2017-06-14T14:28:44Z")

</div>

Hi Mario,

We didn’t discuss _nested_ functions in the [thread](http://discourse.myhdl.org/t/pass-large-intbv-to-helper-function/155/4) you mention, did we?  
I rarely used functions in VHDL as you describe here, and I certainly didn’t nest them. So far I haven’t hit this issue in MyHDL either, yet.  
I have no real idea how difficult it would be to implement in MyHDL. _At the beginning and the end it looks easy, but there is always a lot of work in between_ 😄

Regards,  
Josy

---

_[View the full topic](https://discourse.myhdl.org/t/add-support-for-nested-functions/198)._
