#!/usr/bin/lua -- Numbers: a=3 -- a contains 3 b=a -- b contains 3 a=4 -- a contains 4, b still contains 3 print(a,b) -- 4 3 -- Booleans: a=true; b=a; a=false print(a,b) -- false true -- Strings: a="World" -- a points to the string "World" b=a -- b points to the same string a="Hello" -- a points to "World", b still points to "Hello" print(a,b) --> Hello World -- Functions: a= function() print("World") end b=a -- a and b point to the same function: print(a,b) --> function: 0x80500e8 function: 0x80500e8 a= function() print("Hello") end -- a points to a new function and b still points to the old function: print(a,b) --> function: 0x8050a48 function: 0x80500e8 a() -- Hello b() -- World