You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking some more about it and just wanted to mention that this seems like a very special case.
For example, if we have
my_macrodomoduleFoodo@foo"bar"end
Then you can't tell for sure if module is available or not until you expand my_macro. Just wanted to mention, I don't know if you already thought of this case.
josevalim
changed the title
Raise before expansion when outside of a function and the function/a does not exit
Raise before expansion when outside of a function and the function/arity does not exist
Jul 1, 2014
@sasa1977 now I understood your comment. We are not going special case module, it is a mechanism available for all calls that cannot expand to a local call (basically all calls outside a function/macro).
For example, the following code:
Should raise with unknown function or macro
module/2
.The text was updated successfully, but these errors were encountered: