Code: Select all
function something(parameter)
local result
do -- region one
local inner_scope_variable = "whatever"
result = inner_scope_variable
end
return result
end
Code: Select all
function something(parameter)
local result
do -- region one
local inner_scope_variable = "whatever"
result = inner_scope_variable
end
return result
end
Code: Select all
function Obj()
local self = {}
self.x = 100
self.add = function(var) self.x = self.x + var end
return self
end
instance = Obj()
Sorry, I just forgot to rename it, but yeah it's a zip file with a main.lua in it, so it should run just fine.alberto_lara wrote:you should add a .love file instead of a zip