Skip to content

native: support more assign ops, reduce code duplication#25283

Merged
spytheman merged 1 commit into
vlang:masterfrom
Eliyaan:assign_ops
Sep 11, 2025
Merged

native: support more assign ops, reduce code duplication#25283
spytheman merged 1 commit into
vlang:masterfrom
Eliyaan:assign_ops

Conversation

@Eliyaan

@Eliyaan Eliyaan commented Sep 11, 2025

Copy link
Copy Markdown
Member
  • change function signature for the ones that always operate on rax
  • create apply_op_int for all the different assign operations on integers (could be use also for normal operations later on)
  • support more assign operations for cases with an IfExpr/variable on the right instead of a literal (for ints and bools)

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-25220

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit fd479a2 into vlang:master Sep 11, 2025
74 checks passed
@Eliyaan Eliyaan deleted the assign_ops branch October 13, 2025 18:23
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