Module:User:Surjection/test

Hello, you have come here looking for the meaning of the word Module:User:Surjection/test. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Surjection/test, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Surjection/test in singular and plural. Everything you need to know about the word Module:User:Surjection/test you have here. The definition of the word Module:User:Surjection/test will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Surjection/test, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

function export.test()
	local data = mw.loadData("Module:languages/data/2")
	-- setmetatable(data, {})				-- This fails.
	
	getmetatable(data).__metatable = nil
	local data2 = setmetatable(data, {})	-- This works!
	
	data2.new_index = "muahaha"
	return data2
end

return export