Skip to content

add @__FUNCTION__ macro #841

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MilesCranmer
Copy link
Member

JuliaLang/julia#58940

The macro implemented here differs slightly because it needs to refer to the internal variable var"#self#", rather than the new Expr(:thisfunction) directive, as the later required parser changes to expand compatibility with callable structs.

However, the only change this means in practice is that the Compat version will throw an error in cases where the Julia 1.13.0-DEV.880 version would work. So there would not be any silent differences; only very obvious ones. I have mentioned these cases on the Compat version docstring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant