Document how to use Lua 5.4 and power patches#301
Open
4mmonium wants to merge 2 commits intocitizenfx:masterfrom
Open
Document how to use Lua 5.4 and power patches#3014mmonium wants to merge 2 commits intocitizenfx:masterfrom
4mmonium wants to merge 2 commits intocitizenfx:masterfrom
Conversation
This commit adds documentation on how to use Lua 5.4 and documents the power patches provided by this new release. Most of the documentation for this comes from the readme (https://github.com/gottfriedleibniz/lua/blob/luaglm/README.md), 'as is' and the lua-users Wiki: http://lua-users.org/wiki/LuaPowerPatches#LUA_54_patches I tried to not modify any of the documentation, only adding certain markdown styling and some extra explanation to specific terms which may not be known to new users.
Contributor
|
Currently, FiveM is compiled with a different tree of LuaGLM that does not include all of the power patches gottfriedleibniz/lua:luaglm has and not all of them are enabled either :) |
Contributor
Author
Thanks, I guess I will review this and remove any power patches that don't apply from the docs 😃 |
4mmonium
commented
Mar 2, 2022
4mmonium
commented
Mar 2, 2022
|
|
||
| ## Short Function Notation or Shorthand lambdas (5.4.2) | ||
|
|
||
| Syntactic sugar for writing concise anonymous functions of the form `|a, b, |
Contributor
Author
There was a problem hiding this comment.
Removing, couldn't find a reference to this
4mmonium
commented
Mar 3, 2022
| result = table.isfrozen(t) | ||
| ``` | ||
|
|
||
| ## Save/restore readline history (5.4.2) |
Contributor
Author
There was a problem hiding this comment.
This and Advanced readline support (5.4, 5.3, 5.2, 5.1, 5.0) aren't enabled, GRIT_POWER_READLINE_HISTORY isn't set in the defines.
- Remove shorthand lambda stuff (doesn't exist). - Remove Save/restore readline history (5.4.2). - Remove Advanced readline support (5.4, 5.3, 5.2, 5.1, 5.0). - Remove 'Readonly' (for tables, which doesn't exist). - Add functions for string blobs. - Add section for nanosecond resolution timers with example code. Thanks to @jaymo1011 for the help.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds documentation on how to use Lua 5.4 and documents the
power patches provided by this new release. Most of the documentation
for this comes from the readme (https://github.com/gottfriedleibniz/lua/blob/luaglm/README.md),
'as is' and the lua-users Wiki: http://lua-users.org/wiki/LuaPowerPatches#LUA_54_patches
I tried to not modify any of the documentation, only adding certain
markdown styling and some extra explanation to specific terms which may not be
known to new users.