-- Chapter 22 example: tables are passed by reference.

local a = {1, 2, 3}
local b = a
b[1] = 99
print(a[1])   -- 99  -- changing through b changes a as well
