From 129a24f6cc16f9151327eccec2112db9a1ddff53 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 16 Feb 2018 08:23:15 +0100 Subject: util.array: Add a __name field to metatable --- util/array.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/array.lua') diff --git a/util/array.lua b/util/array.lua index 150b4355..1a8ffec7 100644 --- a/util/array.lua +++ b/util/array.lua @@ -19,7 +19,7 @@ local type = type; local array = {}; local array_base = {}; local array_methods = {}; -local array_mt = { __index = array_methods, __tostring = function (self) return "{"..self:concat(", ").."}"; end }; +local array_mt = { __index = array_methods, __name = "array", __tostring = function (self) return "{"..self:concat(", ").."}"; end }; local function new_array(self, t, _s, _var) if type(t) == "function" then -- Assume iterator -- cgit v1.2.3