KSP-KOS / KOS

Fully programmable autopilot mod for KSP. Originally By Nivekk
Other
699 stars 230 forks source link

Bitwise operations support #2988

Open marianoapp opened 3 years ago

marianoapp commented 3 years ago

Add support for bitwise operations (not, left shift, right shift, and, xor, or). I have a PR ready if we decide to include this.

We may need to discuss the symbols used for some of the operators since some are already used for other purposes ("^" is the most common XOR operator but we are already using it for POWER).

nuggreat commented 3 years ago

If bitwise operations are going to be added it would be more in keeping with the kerboscript style if they where words as in a person needs to explicitly type (not, left shift, right shift, and, xor, or) in the same vain as what we do with boolean operations already.

JonnyOThan commented 4 months ago

be sure to read discussion in #2990 regarding syntax.