github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/runtime/lua/values.lua (about) 1 print(1 + "2") 2 --> =3 3 4 print(1 + "3.2") 5 --> =4.2 6 7 print(pcall(function() return 1 + "3.a" end)) 8 --> ~^false 9 10 print(pcall(function() return 1 + "x" end)) 11 --> ~^false 12 13 print(string.char("65")) 14 --> =A 15 16 print(string.char("7e1")) 17 --> =F 18 19 print(pcall(string.char, "x")) 20 --> ~false.*integers 21 22 print(pcall(string.char, "7.1")) 23 --> ~false.*integers 24 25 print(string.byte("123", -1)) 26 --> =51