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

Revert "5724-Improve-AdditionalMethodStaterefersToLiteral" #5770

Conversation

MarcusDenker
Copy link
Member

Reverts #5731

This was not a good change: semantics are a bit odd: for Bindings, we want to only look into them deeply if they are in a property. Else not. I will revert it and put a comment.

(it does not add a bug this way but it is even more confusing as before)

@guillep
Copy link
Member

guillep commented Feb 26, 2020 via email

@MarcusDenker
Copy link
Member Author

I found that odd, too.

There are tests (for the properties case). This is how I found it. I thought "no, that code is wrong, we never want to look at a value of a VariableBinding for the literals" --> boom, test that checks for it fails.

@MarcusDenker
Copy link
Member Author

I will out this on "need more work" as I am tempted to get rid of the strange semantics... we should not look into globals if the are the the value of a method property!

@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Feb 28, 2020
@guillep
Copy link
Member

guillep commented Mar 14, 2020

So this PR gets rid of a bug? If so, It has my approval.
I prefer to go back to a state where the code was ugly but we had less bugs, than to stay with a bug that we can avoid easily. The semantics are strange in both cases, so there is no real improvement there :).

Copy link
Member

@guillep guillep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to go back to the working version.
The code is "ugly", but it is a single method, nothing we cannot deal with.

@guillep
Copy link
Member

guillep commented Mar 14, 2020

I could integrate it, I just need confirmation from @MarcusDenker

@MarcusDenker
Copy link
Member Author

yes, we should merge this revert

@guillep
Copy link
Member

guillep commented Mar 15, 2020

Thanks Marcus!

@guillep guillep merged commit d5697ea into Pharo9.0 Mar 15, 2020
@guillep guillep deleted the revert-5731-5724-Improve-AdditionalMethodStaterefersToLiteral branch March 15, 2020 11:19
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