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

InputCommon: Fix input expression assignment operator behavior. #13314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Jan 28, 2025

Assignment-operator was always broken when interacting with comma-operator and other assignment-operators.

Before:
All of these should evaluate as 1.
imageimage
image

After:
All the above now evaluate as 1 as they should.

LHS is evaluated before RHS (consistent for all binary operators).
image

Conditional operator produces an l-value.
image

Making Expression::GetValue non-const eliminated a bunch of ugly mutable usage.

@jordan-woyak jordan-woyak force-pushed the input-expressions-assignment-op-fix branch from bd4b2bd to 6a05d31 Compare January 28, 2025 20:13
@jordan-woyak jordan-woyak changed the title InputCommon: Fix assignment operator behavior. InputCommon: Fix input expression assignment operator behavior. Jan 28, 2025
@jordan-woyak jordan-woyak force-pushed the input-expressions-assignment-op-fix branch from 6a05d31 to c9ad543 Compare January 28, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants