lua-users home
lua-l archive

Re: Changelog for 5

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Quick list of changes from 4.0 to 5.0:
- coroutines
- lexical scoping
- metatables (x tags)
- weak tables
- generic for
- proper tail call
- boolean type
- new way to handle userdata in the C API (+ light userdata)
- new way to handle errors in the C API
- new functions (time/date, tmpfile, unpack, require, load*, )
- block comments --[[...]]
- still faster
- better error messages
Quick list of changes from 5.0 beta to final:
- no-nonsense debug info about tail calls
- correct implementation for comparison metamethods
- getn/setn in lauxlib
- two new debug functions to manipulate upvalues
- string.byte returns nil for index out-of-range
- "require" returns value returned by package
- get/setglobals renamed to get/setfenv ("function environment")
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /