lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Here's another data point:

This crashes:

strings = {}
function collisionDetection(data, o1, o2)
		strings[tostring(o1)] = true
end


This doesn't:

function collisionDetection(data, o1, o2)
		local strings = {}
		strings[tostring(o1)] = true
end

Is there an issue with scope and lua_call/lua_pcall in this situation
or could there be a potential bug?

wes