summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-28 15:46:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-28 15:46:49 -0300
commitb293ae0577bebaca7169cb4f041b800641d5e2c4 (patch)
treebda609d72277433bda3537ac50ed8fecf9a73898 /manual
parentd9f40e3f6fb61650240c47d548bee69b24b07859 (diff)
downloadlua-github-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.gz
Details
- new error message for "attempt to assign to const variable" - note in the manual about compatibility options - comments - small changes in 'read_line' and 'pushstr'
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of13
1 files changed, 8 insertions, 5 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 6cac8c6c..ff69cd2c 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -8774,10 +8774,18 @@ is a more portable solution.
Here we list the incompatibilities that you may find when moving a program
from @N{Lua 5.3} to @N{Lua 5.4}.
+
You can avoid some incompatibilities by compiling Lua with
appropriate options (see file @id{luaconf.h}).
However,
all these compatibility options will be removed in the future.
+More often than not,
+compatibility issues arise when these compatibility options
+are removed.
+So, whenever you have the chance,
+you should try to test your code with a version of Lua compiled
+with all compatibility options turned off.
+That will ease transitions to newer versions of Lua.
Lua versions can always change the C API in ways that
do not imply source-code changes in a program,
@@ -8826,11 +8834,6 @@ In particular, the control variable never wraps around.
}
@item{
-When a coroutine finishes with an error,
-its stack is unwound (to run any pending closing methods).
-}
-
-@item{
A label for a @Rw{goto} cannot be declared where a label with the same
name is visible, even if this other label is declared in an enclosing
block.