-
I do not understand logic hidden here, especially the difference between int and Int 32. Execute this and see: fn main():
var x1: Int32 = 0
var y1: Int32 = 5
var z1: Int32 = 6
var x2 = 0
var y2 = 5
var z2 = 6
print(x1 or z1, x2 or z2)
print(x1.__or__(z1), x2.__or__(z2))
print(x1 and z1, x2 and z2)
print(x1.__and__(z1), x2.__and__(z2))
print(y1 or z1, y2 or z2)
print(y1.__or__(z1), y2.__or__(z2))
print(y1 and z1, y2 and z2)
print(y1.__and__(z1), y2.__and__(z2)) Result:
P.S. I know why (give this result "alias Int32 = SIMD[si32, 1]", but I do not know why (should be a difference) :) |
Beta Was this translation helpful? Give feedback.
Answered by
soraros
Feb 25, 2024
Replies: 1 comment 1 reply
-
Cause of the problem is this. Mojo got |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RtyLiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cause of the problem is this. Mojo got
bool(Int32(...))
etc. flipped, it's horrible.