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

RFC: slightly refactor representation of generated methods #22744

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

JeffBezanson
Copy link
Member

This is a small step in the direction of having fallbacks for @generated functions --- or, put differently, treating @generated methods as just optimizations of normal methods.

  • Remove isstaged field. In the future, a method will not be inherently staged but rather have a generator available or not.
  • Always use meth.generator.inferred to access generator code.
  • Make meth.source always refer to normal code, set to NULL for generated methods. This allows us to have both in the future.

- Remove `isstaged` field. In the future, a method will not be
  inherently staged but rather have a generator available or not.
- Always use meth.generator.inferred to access generator code.
- Make meth.source always refer to normal code, set to NULL for
  generated methods. This allows us to have both in the future.
@vtjnash
Copy link
Member

vtjnash commented Jul 11, 2017

Reverts 8b708b4

Lgtm, but I never really saw the point to that issue originally either.

@JeffBezanson JeffBezanson merged commit d91583d into master Jul 11, 2017
@JeffBezanson JeffBezanson deleted the jb/isstaged branch July 11, 2017 04:32
@vtjnash
Copy link
Member

vtjnash commented Jul 12, 2017

Reopen #18838?

@JeffBezanson
Copy link
Member Author

Nah, that issue will only get less valid, since my plan is to put a normal implementation in .source and keep all the generator stuff in .generator.

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.

2 participants