tests/pass/hello.lua

Wed, 24 Nov 2010 02:50:31 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 24 Nov 2010 02:50:31 +0000
changeset 135
77022489338a
parent 57
3e148db7f933
permissions
-rw-r--r--

OP_RETURN: Pad out results with nils if we get less results than expected

local a, b = "One", "Deux";

function pp()
	local _b = b;
	a = "Une"
	local c = "Trois!";
	local function b()
		return a, _b, c;
	end
	return b;
end

print(pp()())

print(a)

mercurial