Inconsistent table order caused by Lua cjson

      Lua cjson is a simple and compact open source library that can be loaded by Lua script require. In Lua, the mutual conversion (encoding and decoding) between Lua value and Json value is completed through a series of lua cjson API calls.       A problem is found in the use of lua cjson: ...

Posted by amedhussaini on Sun, 19 Sep 2021 01:57:02 +0200

Lua string.format() use collation

In the actual development process using Lua, the frequency of using the function string.format() to format a string is very high. Here is a summary of the use of this function. Parameter analysis string.format(formatstring, ...) formatstring   Is a format string (must be a string), which may contain multiple escape codes (such as the mo ...

Posted by tiagofrancis on Sun, 12 Sep 2021 07:26:53 +0200