Code: Select all
function newSquare(f)
local square = setmetatable({ n = 1 }, square)
square.button = newButton(function () square:increment end)
return square
end
Code: Select all
function newSquare(f)
local square = setmetatable({ n = 1 }, square)
square.button = newButton(function () square:increment end)
return square
end