RosettaCodeData/Task/Arena-storage-pool/Lua/arena-storage-pool.lua

7 lines
226 B
Lua
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
pool = {} -- create an "arena" for the variables a,b,c,d
pool.a = 1 -- individually allocated..
pool.b = "hello"
pool.c = true
pool.d = { 1,2,3 }
pool = nil -- release reference allowing garbage collection of entire structure