Better support for serialization and sorting of the Token data type

This commit is contained in:
2026-02-18 23:23:59 -05:00
parent 0de2a50843
commit 1fd06f0628
6 changed files with 98 additions and 44 deletions

View File

@@ -794,15 +794,15 @@ LuaDefine(genlt, "obj1,obj2",
"|* Numbers are compared in the obvious numeric manner."
"|* Strings are compared alphabetically."
"|* Booleans are compared with false being less than true."
"|* Tokens are compared alphabetically."
"|* Tables are all considered equal to other tables."
"|* Functions are all considered equal to other functions."
"|* Coroutines are all considered equal to other coroutines."
"|"
"|* Numbers are less than strings."
"|* Strings are less than booleans."
"|* Booleans are less than functions."
"|* Functions are less than coroutines."
"|* Coroutines are less than tables."
"|Values of different types are printed in this order:"
"|"
"| Numbers, Strings, Booleans, Tokens,"
"| Functions, Threads, Tables, and NIL"
"|") {
LuaArg o1,o2;
LuaRet lt;