3 * Changes from version 3.2 to 4.0
4 -------------------------------
6 + new "break" and "for" statements (both numerical and for tables).
7 + uniform treatment of globals: globals are now stored in a Lua table.
8 + improved error messages.
9 + no more '$debug': full speed *and* full debug information.
10 + new read form: read(N) for next N bytes.
11 + general read patterns now deprecated.
12 (still available with -DCOMPAT_READPATTERNS.)
13 + all return values are passed as arguments for the last function
14 (old semantics still available with -DLUA_COMPAT_ARGRET)
15 + garbage collection tag methods for tables now deprecated.
16 + there is now only one tag method for order.
18 + New API: fully re-entrant, simpler, and more efficient.
21 + cleaner virtual machine -- at least 20% faster.
22 + non-recursive garbage-collector algorithm.
23 + reduced memory usage for programs with many strings.
24 + improved treatment for memory allocation errors.
25 + improved support for 16-bit machines (we hope).
26 + code now compiles unmodified as both ANSI C and C++.
27 + numbers in bases other than 10 are converted using strtoul.
28 + new -f option in Lua to support #! scripts.
29 + luac can now combine text and binaries.
31 * Changes from version 3.1 to 3.2
32 -------------------------------
33 + redirected all output in Lua's core to _ERRORMESSAGE and _ALERT.
34 + increased limit on the number of constants and globals per function
36 + debugging info (lua_debug and hooks) moved into lua_state and new API
37 functions provided to get and set this info.
38 + new debug lib gives full debugging access within Lua.
39 + new table functions "foreachi", "sort", "tinsert", "tremove", "getn".
40 + new io functions "flush", "seek".
42 * Changes from version 3.0 to 3.1
43 -------------------------------
44 + NEW FEATURE: anonymous functions with closures (via "upvalues").
46 - local variables in chunks.
47 - better scope control with DO block END.
48 - constructors can now be also written: { record-part; list-part }.
49 - more general syntax for function calls and lvalues, e.g.:
52 f"string" is sugar for f("string")
53 + strings may now contain arbitrary binary data (e.g., embedded zeros).
54 + major code re-organization and clean-up; reduced module interdependecies.
55 + no arbitrary limits on the total number of constants and globals.
56 + support for multiple global contexts.
57 + better syntax error messages.
58 + new traversal functions "foreach" and "foreachvar".
59 + the default for numbers is now double.
60 changing it to use floats or longs is easy.
61 + complete debug information stored in pre-compiled chunks.
62 + sample interpreter now prompts user when run interactively, and also
63 handles control-C interruptions gracefully.
65 * Changes from version 2.5 to 3.0
66 -------------------------------
67 + NEW CONCEPT: "tag methods".
68 Tag methods replace fallbacks as the meta-mechanism for extending the
69 semantics of Lua. Whereas fallbacks had a global nature, tag methods
70 work on objects having the same tag (e.g., groups of tables).
71 Existing code that uses fallbacks should work without change.
72 + new, general syntax for constructors {[exp] = exp, ... }.
73 + support for handling variable number of arguments in functions (varargs).
74 + support for conditional compilation ($if ... $else ... $end).
75 + cleaner semantics in API simplifies host code.
76 + better support for writing libraries (auxlib.h).
77 + better type checking and error messages in the standard library.
78 + luac can now also undump.
80 * Changes from version 2.4 to 2.5
81 -------------------------------
82 + io and string libraries are now based on pattern matching;
83 the old libraries are still available for compatibility
84 + dofile and dostring can now return values (via return statement)
85 + better support for 16- and 64-bit machines
86 + expanded documentation, with more examples
88 * Changes from version 2.2 to 2.4
89 -------------------------------
90 + external compiler creates portable binary files that can be loaded faster
91 + interface for debugging and profiling
92 + new "getglobal" fallback
93 + new functions for handling references to Lua objects
94 + new functions in standard lib
95 + only one copy of each string is stored
96 + expanded documentation, with more examples
98 * Changes from version 2.1 to 2.2
99 -------------------------------
100 + functions now may be declared with any "lvalue" as a name
101 + garbage collection of functions
104 * Changes from version 1.1 to 2.1
105 -------------------------------
106 + object-oriented support
108 + simplified syntax for tables
109 + many internal improvements