Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace current_module() with @__MODULE__ #22064

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Commits on Jun 6, 2017

  1. replace current_module() with @__MODULE__

    passes macros a __module__ argument, like the __source__ argument,
    allowing them to inspect and configure themselves based on their evaluation context
    
    remove current_module dependence from `include`:
    instead, we use the same trick as for `eval` (they are basically the same function after all)
    to create a module-relative function in each non-bare module
    
    now puts Module in MethodInstance.def for toplevel thunks to make it convenient to pass around this contextual information
    vtjnash committed Jun 6, 2017
    3 Configuration menu
    Copy the full SHA
    3c3ced4 View commit details
    Browse the repository at this point in the history