sasa1977 / exactor

Helpers for simpler implementation of GenServer based processes
MIT License
683 stars 23 forks source link

defcall can not use in quote #21

Closed rubyist1982 closed 8 years ago

rubyist1982 commented 8 years ago

code like below can not work since i want to inject code from other module for grouping quote do defcall get_any do reply :ok end end but using get_any() it works

sasa1977 commented 8 years ago

Sorry for the late reply, I was a bit busy.

I'm able to reproduce the problem, but now I need to check some AST internals with Elixir team. However, I'll be out of town for two weeks, and I probably won't be able to do much about this problem until I return. So for the moment, the workaround is indeed to use defcall get_any() if you use it inside a quote, but I'll definitely see what can I do about it.

Thank you for reporting this!

sasa1977 commented 8 years ago

This should be fixed on master. I'll publish the new version to hex later today or tomorrow.

sasa1977 commented 8 years ago

FYI, I just pushed version 2.2.1 to hex.