charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

Bitwise operators #162

Closed KCreate closed 7 years ago

KCreate commented 7 years ago

Add bitwise operators to the language to operate on Numeric types.

These operations only work on Numeric types. If an operand is of a different type, NAN will be returned. Internally, the numbers are converted to Int64 before the operation happens.

For example, 5.5 will be converted to 5 beforehand.

KCreate commented 7 years ago

Operator overloading won't be implemented for bitwise operators.

KCreate commented 7 years ago

Implemented via #163

KCreate commented 7 years ago

TODO: Update docs

KCreate commented 7 years ago

Documented