7 votes

Lua 5.4.0 (Beta)

1 comment

  1. unknown user
    Link
    List of highlights from the reference: new generational mode for garbage collection to-be-closed variables const variables userdata can have multiple user values new implementation for math.random...

    List of highlights from the reference:

    • new generational mode for garbage collection
    • to-be-closed variables
    • const variables
    • userdata can have multiple user values
    • new implementation for math.random
    • warning system
    • debug information about function arguments and returns
    • new semantics for the integer 'for' loop
    • optional 'init' argument to 'string.gmatch'
    • new functions 'lua_resetthread' and 'coroutine.close'
    • coersions string-to-number moved to the string library
    • allocation function allowed to fail when shrinking a memory block
    • new format '%p' in 'string.format'
    • utf8 library accepts codepoints up to 2^31
    4 votes