Jump to content

Module:Sandbox/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 5: Line 5:
local k = {"memory leak test"}
local k = {"memory leak test"}
while true do
while true do
k[i+1] = (k[i])..(k[i])
print(k[i])
k[i+1] = tostring(k[i])..tostring(k[i])
i = i + 1
i = i + 1
end
end

Revision as of 13:24, 23 January 2018

local p = {}

function p.memoryleak()
	local i = 1
	local k = {"memory leak test"}
	while true do
		print(k[i])
		k[i+1] = tostring(k[i])..tostring(k[i])
		i = i + 1
	end
end

return p