aboutsummaryrefslogtreecommitdiff
path: root/manual/manual.of
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2026-01-20 13:06:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2026-01-20 13:06:16 -0300
commite992c6a95939c8e1fe357bfce481e0d0c762c3c6 (patch)
tree5755e2d0ce6b8e7bbca0d7c1cebf6b51b0d7e607 /manual/manual.of
parentf5d1e8639bf5df24c761602354218df21f796a30 (diff)
downloadlua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.tar.gz
lua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.tar.bz2
lua-e992c6a95939c8e1fe357bfce481e0d0c762c3c6.zip
Some compilation options configurable from makefile
Compilation options LUA_COMPAT_GLOBAL, LUA_COMPAT_LOOPVAR, and LUA_READLINELIB do not affect the API, so they can be changed through the make file.
Diffstat (limited to 'manual/manual.of')
-rw-r--r--manual/manual.of6
1 files changed, 6 insertions, 0 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 5fa4e097..09075346 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -9594,12 +9594,18 @@ change between versions.
9594@item{ 9594@item{
9595The word @Rw{global} is a reserved word. 9595The word @Rw{global} is a reserved word.
9596Do not use it as a regular name. 9596Do not use it as a regular name.
9597
9598The compilation option @id{LUA_COMPAT_GLOBAL} (see @id{luaconf.h})
9599makes @id{global} a regular word.
9597} 9600}
9598 9601
9599@item{ 9602@item{
9600The control variable in @Rw{for} loops is read only. 9603The control variable in @Rw{for} loops is read only.
9601If you need to change it, 9604If you need to change it,
9602declare a local variable with the same name in the loop body. 9605declare a local variable with the same name in the loop body.
9606
9607The compilation option @id{LUA_COMPAT_LOOPVAR} (see @id{luaconf.h})
9608makes these variables regular (writable).
9603} 9609}
9604 9610
9605@item{ 9611@item{