All feedback welcome. Thanks.
--lhf
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20250701145026.GA143599%40arraial.inf.puc-rio.br.
All feedback welcome. Thanks.
--lhf
I don't think so. What you described is a chain of calls, not a chain
of __call metamethods.
-- Roberto
All feedback welcome. Thanks.
--lhf
local x = x
, the new x
being declared is not in scope yet, and so the x
in the left-hand side refers to the outside variable."--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/12df2e1b-3ab3-4903-866a-7745024b862cn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/12df2e1b-3ab3-4903-866a-7745024b862cn%40googlegroups.com.
Building the 5.5 beta on macOS (Clang 17, arm64), I got this warning:
lua.c:492:15: warning: cast from 'int (*)(const char *)' to 'l_addhistT' (aka 'void (*)(const char *)') converts to incompatible function type [-Wcast-function-type-mismatch]To view this discussion visit https://groups.google.com/d/msgid/lua-l/CAAnJQcaoXiaQXe2jN0XsBhe5vd0%2BW%3DGaPuYwHRDFHFZA%3DByHzQ%40mail.gmail.com.
Lua 5.5.0 (beta) is now available for testing at
https://www.lua.org/work/lua-5.5.0-beta.tar.gz
> to-be-closed external strings (with obvious logic of calling falloc on close)
Strings do not have per-instance metatables like tables and userdata do, so you can't attach a __close or __gc.
I think the intended usage is for static strings that comfortably outlive the lifetime of the Lua state.
The introduction of external strings caught my eye; however, I also noticed that (as opposed to userdata) such strings cannot be to-be-closed; some might find using to-be-closed external strings (with obvious logic of calling falloc on close) advantageous but, as I understand, this could be difficult as small strings could be internalized and become regular strings (which are non-closable).
Building the 5.5 beta on macOS (Clang 17, arm64), I got this warning:
lua.c:492:15: warning: cast from 'int (*)(const char *)' to 'l_addhistT' (aka 'void (*)(const char *)') converts to incompatible function type [-Wcast-function-type-mismatch]Best,-- Andrew Starks
> Seems like additional conceptual problems like what happens to extra
> references to such strings when the variable is closed (especially if
> they're used as table keys) make this complicated (though probably still
> solvable), so choosing not to bother with this is understandable; I just
> wanted to point this out as a possible design direction.
There seems to be a misunderstanding here. There is no such thing as
a "closed string".
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CADYCxoNg55%3DYm-05%3DUJecbnX%2Bio6w3unNUq9hjDG725XTBeGBA%40mail.gmail.com.
Lua 5.5.0 (beta) is now available for testing at
https://www.lua.org/work/lua-5.5.0-beta.tar.gz
The SHA256 checksum is
30897f95fc72565cb6c1792f721ad44e1a42e7ac587f62f7587807b3cbff1645 -
The Git commit ID is
cfce6f4b20afe85ede2182b3df3ab2bfcdb0e692
This is a beta version. Some details may change in the final version.
The main changes in Lua 5.5.0 are listed at
https://www.lua.org/work/doc/#changes
An updated reference manual is included and also available at
https://www.lua.org/work/doc
A test suite is available at
https://www.lua.org/work/lua-5.5.0-tests.tar.gz
But this code is gone now; see commit
59a1adf194efe43741c2bb2005d93d8320a19d14.
yes, l_noret is void for clang as it is neither __GNUC__ nor _MSC_VER > 1200i should redefine it as void __attribute__((noreturn)) manually or pretend to be __GNUC__.
On 30 Jun 2025, at 13:43, Luiz Henrique de Figueiredo <l...@tecgraf.puc-rio.br> wrote:
The SHA256 checksum is
30897f95fc72565cb6c1792f721ad44e1a42e7ac587f62f7587807b3cbff1645 -
The Git commit ID is
cfce6f4b20afe85ede2182b3df3ab2bfcdb0e692
This is a beta version. Some details may change in the final version.
The main changes in Lua 5.5.0 are listed at
https://www.lua.org/work/doc/#changes
All feedback welcome. Thanks.
--lhf--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/12df2e1b-3ab3-4903-866a-7745024b862cn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/73495012-CC79-4436-80A4-29133395900C%40me.com.