-
Hi, new to janet. In the docs under comparision operators it says However, I find if I do something like Switching it up to the following works as expected. |
Beta Was this translation helpful? Give feedback.
Answered by
sogaiu
Sep 21, 2023
Replies: 2 comments 6 replies
-
What platform are you on? Cannot reproduce on my machine. Janet 1.31.0-local windows/x64/msvc - '(doc)' for help
repl:1:> (= 0 (string/find "foo" "bar"))
false
repl:2:> (= 0 (string/find "foo" "bar") 0)
false
repl:3:> (= (string/find "foo" "bar") 0)
false
repl:4:> |
Beta Was this translation helpful? Give feedback.
6 replies
-
Should be fixed in 7b4c3bd |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May be these are the lines in question (just following up on ianthehenry's analysis)?
janet/src/core/vm.c
Lines 863 to 865 in 910b9cf
janet/src/core/vm.c
Lines 871 to 873 in 910b9cf