From ca130f36a5295fb38445de7207459baa8070338f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 9 Oct 2017 03:51:53 -0700 Subject: Added chain for loaded files. --- nomsu.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 0ed111c..69e17ca 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -802,7 +802,9 @@ do self.repr = function(self, ...) return repr(...) end - self.loaded_files = { } + self.loaded_files = setmetatable({ }, { + __index = parent and parent.loaded_files + }) if not parent then return self:initialize_core() end -- cgit v1.2.3