Talk:Data types
Jump to navigation
Jump to search
What is the scope of this page?
What is the scope of this page? Is it meant to document data types in Lua as used in Factorio modding? IMO it's better to just refer to the Lua 5.2 docs for that. For example this page claims that a bool is a number either 0 or 1, which is the case in C++, but is not how it appears to the Lua programmer: nil (the unique value of the nil type) and false are false, everything else (including the number 0 of any type) is true. Thrawcheld (talk) 01:14, 27 January 2025 (UTC)
- The data types are those used by the C++ engine for serialization (which are not the same as the Lua types) so that pages documenting various internal formats can link here for the types. You can see these pages if you click "What links here" in the sidebar. It's pages like map exchange string format and achievement file format, which document formats serialized directly by the C++ engine. Lua is not involved there. -- Bilka (talk) - Admin 14:45, 27 January 2025 (UTC)