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

compiler: fix ??=, ||= and &&= logical assignment sementics #123

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

jow-
Copy link
Owner

@jow- jow- commented Nov 14, 2022

When compiling logical assignment expressions, ensure that the rhs of the assignment is not evaluated when the assignment condition is unfulfilled.

Signed-off-by: Jo-Philipp Wich jo@mein.io

@jow- jow- force-pushed the fix-logical-assignment-operators branch from bdbec19 to a6f6538 Compare November 14, 2022 21:29
@jow- jow- changed the title compiler: fix ??=, ||= and &&= logical assignment operators compiler: fix ??=, ||= and &&= logical assignment sementics Nov 14, 2022
@jow- jow- force-pushed the fix-logical-assignment-operators branch 2 times, most recently from d32f952 to 03fc86a Compare November 14, 2022 23:53
When compiling logical assignment expressions, ensure that the right hand
side of the assignment is not evaluated when the assignment condition is
unfulfilled.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow- jow- force-pushed the fix-logical-assignment-operators branch from 03fc86a to fdc9b6a Compare November 15, 2022 00:21
@jow- jow- merged commit 8faa305 into master Nov 22, 2022
@jow- jow- deleted the fix-logical-assignment-operators branch November 22, 2022 16:38
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