You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the mode is GLFW_STICKY_KEYS, the value must be either GLFW_TRUE to enable sticky keys, or GLFW_FALSE to disable it.
...
If the mode is GLFW_STICKY_MOUSE_BUTTONS, the value must be either GLFW_TRUE to enable sticky mouse buttons, or GLFW_FALSE to disable it.
...
Failure Information (for bugs)
Design issue
Steps to Reproduce
Design issue
Failure Logs
Cannot convert 'glfw.TRUE' to 'i32' from 'untyped bool', got true
Cannot convert 'glfw.FALSE' to 'i32' from 'untyped bool', got false
My opinion: I really don't like the idea of trying to have the exact same API in C and Odin. This is a clear case where the language semantics make the two incompatible. But I'm sure I'm not the first one to bring this up
The text was updated successfully, but these errors were encountered:
Context
Trying the language out for the first time right now.
odin report
output:Expected Behavior
glfw.TRUE
andglfw.FALSE
should both be acceptable as the third parameter ofglfw.SetInputMode
Current Behavior
Since
glfw.TRUE
is defined astrue
andglfw.FALSE
asfalse
Odin/vendor/glfw/constants.odin
Lines 13 to 14 in a61ae7c
(booleans) instead of
1
and0
(integers), as they are in C (https://www.glfw.org/docs/latest/group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba), they are not valid as arguments forglfw.SetInputMode
(https://pkg.odin-lang.org/vendor/glfw/bindings/#SetInputMode —i32
s) — but should be: https://www.glfw.org/docs/latest/group__input.html#gaa92336e173da9c8834558b54ee80563bFailure Information (for bugs)
Design issue
Steps to Reproduce
Design issue
Failure Logs
My opinion: I really don't like the idea of trying to have the exact same API in C and Odin. This is a clear case where the language semantics make the two incompatible. But I'm sure I'm not the first one to bring this up
The text was updated successfully, but these errors were encountered: