objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

Bitwise NOT #480

Closed ghost closed 6 months ago

ghost commented 6 months ago

Don't see it on this table:

https://objeck.org/getting_started.html#operators

objeck commented 6 months ago

The unary bitwise not operation (i.e., one's complement) is not supported. I never needed to; it could be added as Objeck supports the logical <> operator.

ghost commented 6 months ago

The unary bitwise not operation (i.e., one's complement) is not supported. I never needed to; it could be added as Objeck supports the logical <> operator.

For this: https://stackoverflow.com/questions/14233716/bitwise-and-on-signed-chars

objeck commented 6 months ago

I am adding the unary not keyword

objeck commented 6 months ago

Ready for testing, the JIT code seems to be working on ARM64 and AMD64 targets.

ghost commented 6 months ago

I am adding the unary not keyword

Please give example code. I always have compilation error.

objeck commented 6 months ago

Stop insulting me!

ghost commented 6 months ago

Stop insulting me!

OK.