v icon indicating copy to clipboard operation
v copied to clipboard

support `flag_var<bitwise_operator>= .enum_flag`

Open Delta456 opened this issue 1 year ago • 0 comments

Describe the feature

Currently, there is no support for flag_var<bitwise_operator>=enum_flag like flag_var^= .enum_flag and flag_var|=. enum_flag operation.

Use Case

flag_var^= .enum_flag is shorthand for flag_var = flag_var ^ .enum_flag

Proposed Solution

Modify the checker/infix.v file to allow the working of <bitwise>= for enum flags as a starting point.

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

Version used

Latest

Environment details (OS name and version, etc.)

Not relevant

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.

Delta456 avatar Mar 02 '24 08:03 Delta456