From b85c043af240d0d71915e4c1e4ea568fac4d965e Mon Sep 17 00:00:00 2001 From: Ibrahim Abdulhameed Date: Mon, 1 Sep 2025 13:02:04 +0100 Subject: [PATCH] feat: add example for thrown away split initialization var --- source/_posts/lua.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_posts/lua.md b/source/_posts/lua.md index 1efa4ef..1c785cd 100644 --- a/source/_posts/lua.md +++ b/source/_posts/lua.md @@ -47,6 +47,9 @@ The famous "Hello World" program in Lua local age = 18 -- local variable boys, girls = 2, 3 -- global variables +-- Now x = 1, y = 2, z = 3, and 4 is thrown away. +x, y, z = 1, 2, 3, 4 + -- Undefined variables return nil. -- This is not an error: foo = anUnknownVariable -- Now foo = nil.