Optional initialization for global declarations

This commit is contained in:
Roberto Ierusalimschy
2025-07-08 13:33:57 -03:00
parent 8485687908
commit 942c10a5e3
7 changed files with 96 additions and 38 deletions

View File

@@ -4,7 +4,7 @@ local strsub = string.sub
local print = print
_ENV = nil
global none
-- Try to convert a value to an integer, without assuming any coercion.
local function toint (x)