Lua C API中的迷惑行为 | Lua C API Confusions

There are some very confusing behaviors in Lua C API. Here are some explanations for these. (Tested on Lua 5.4) 1. Type of number, integer, string Operations like lua_isnumber, lua_pushinteger, lua_isstring don’t mean checking the value’s type: Values with type number can also get true of lua_isstring. (Number is also string) There are no integer types in Lua. Values generated by lua_pushinteger have type number. Only values generated by lua_pushinteger

成为Contributor | To Be a Contributor

说来惭愧,身为一名程序员,从业五年多,竟然最近一年才开始在开源世界为他人的项目贡献代码。 最近我在阅读一个写得很棒的开源小代码库的时候发现他有