From 7f47d4204039258cec78c767f489b7809b4257ff Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Nov 2018 14:38:05 -0800 Subject: In-progress (but working) overhaul of some elements including: function calls, lib/thing.nom API, multi-assignments, varargs, etc. --- code_obj.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'code_obj.lua') diff --git a/code_obj.lua b/code_obj.lua index 376ee0c..69b7976 100644 --- a/code_obj.lua +++ b/code_obj.lua @@ -77,7 +77,6 @@ local Code do local _class_0 local _base_0 = { - is_code = true, text = function(self) if self.__str == nil then local buff, indent = { }, 0 @@ -169,7 +168,7 @@ do _continue_0 = true break end - if b.is_code then + if type(b) ~= 'string' then b.dirty = error end bits[#bits + 1] = b @@ -223,7 +222,7 @@ do end end bits[#bits + 1] = b - if b.is_code then + if type(b) ~= 'string' then b.dirty = error end if not (type(b) == 'string') then @@ -246,7 +245,7 @@ do end for i = 1, n do local b = select(i, ...) - if b.is_code then + if type(b) ~= 'string' then b.dirty = error end bits[i] = b -- cgit v1.2.3