diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
commit | b293ae0577bebaca7169cb4f041b800641d5e2c4 (patch) | |
tree | bda609d72277433bda3537ac50ed8fecf9a73898 /manual | |
parent | d9f40e3f6fb61650240c47d548bee69b24b07859 (diff) | |
download | lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.gz lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.bz2 lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.zip |
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.of | 13 |
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. | |||
8774 | 8774 | ||
8775 | Here we list the incompatibilities that you may find when moving a program | 8775 | Here we list the incompatibilities that you may find when moving a program |
8776 | from @N{Lua 5.3} to @N{Lua 5.4}. | 8776 | from @N{Lua 5.3} to @N{Lua 5.4}. |
8777 | |||
8777 | You can avoid some incompatibilities by compiling Lua with | 8778 | You can avoid some incompatibilities by compiling Lua with |
8778 | appropriate options (see file @id{luaconf.h}). | 8779 | appropriate options (see file @id{luaconf.h}). |
8779 | However, | 8780 | However, |
8780 | all these compatibility options will be removed in the future. | 8781 | all these compatibility options will be removed in the future. |
8782 | More often than not, | ||
8783 | compatibility issues arise when these compatibility options | ||
8784 | are removed. | ||
8785 | So, whenever you have the chance, | ||
8786 | you should try to test your code with a version of Lua compiled | ||
8787 | with all compatibility options turned off. | ||
8788 | That will ease transitions to newer versions of Lua. | ||
8781 | 8789 | ||
8782 | Lua versions can always change the C API in ways that | 8790 | Lua versions can always change the C API in ways that |
8783 | do not imply source-code changes in a program, | 8791 | do not imply source-code changes in a program, |
@@ -8826,11 +8834,6 @@ In particular, the control variable never wraps around. | |||
8826 | } | 8834 | } |
8827 | 8835 | ||
8828 | @item{ | 8836 | @item{ |
8829 | When a coroutine finishes with an error, | ||
8830 | its stack is unwound (to run any pending closing methods). | ||
8831 | } | ||
8832 | |||
8833 | @item{ | ||
8834 | A label for a @Rw{goto} cannot be declared where a label with the same | 8837 | A label for a @Rw{goto} cannot be declared where a label with the same |
8835 | name is visible, even if this other label is declared in an enclosing | 8838 | name is visible, even if this other label is declared in an enclosing |
8836 | block. | 8839 | block. |