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

Fix 3988 #4094

Closed
wants to merge 4 commits into from
Closed

Fix 3988 #4094

wants to merge 4 commits into from

Conversation

bcardiff
Copy link
Member

@bcardiff bcardiff commented Mar 1, 2017

This PR improves some scenarios regarding instance variables initializers.
The solution is a workaround that collect & expand later the initializers.

A better long term solution would be to decouple analyze ivar initializers and the instantiation of #initialize methods. Like adding a phase that will remove syntactic ivar initializers in the class lexical scope and expand them in the initialize body, before the codegen. Hence in the codegen or further phases there is no need to track the concept of ivar initializers since they could be just a syntax sugar. NB: currently (before PR) ivar initializers are used in #allocate as well.

Fixes #3988

@asterite
Copy link
Member

asterite commented Mar 4, 2017

Similar idea done in a82ef1b

@asterite asterite closed this Mar 4, 2017
@bcardiff bcardiff deleted the fix-3988-b branch March 6, 2017 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants