# Help with implementing a macro

**URL:** <https://forum.elixirforum.com/t/help-with-implementing-a-macro/4087>\
**Category:** Questions\
**Tags:** macros, how-to-question\
**Created:** [March 11, 2017, 12:28am UTC](https://forum.elixirforum.com/t/help-with-implementing-a-macro/4087 "2017-03-11T00:28:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![benwilson512](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/benwilson512/32/1457_2.png) [@benwilson512](https://forum.elixirforum.com/u/benwilson512)\
**Post date:** [March 11, 2017, 1:46am UTC](https://forum.elixirforum.com/t/help-with-implementing-a-macro/4087/2 "2017-03-11T01:46:23Z")

</div>

I’m not entirely clear on what you’re trying to accomplish here, but you have at least 2 major difficulties with the code as is:

1. You can’t use a macro from the same module that defines the macro.
2. You can’t use `var!` out side of a quoted context.

Can you provide an example of what using this macro looks like, and what code you’re hoping the macro would produce?

---

_[View the full topic](https://forum.elixirforum.com/t/help-with-implementing-a-macro/4087)._
