From a35d010dfe2b2769cf13ae508952c279aecb3aac Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 6 Sep 2018 12:46:39 -0700 Subject: Removed the mandatory "_" prefix for Nomsu variables, renamed "list" and "dict" to "List" and "Dict", or in Nomsu's environment, "_List" and "_Dict", removed uuid.lua and replaced it with core/id.nom for handling IDs. --- lib/object.nom | 2 +- lib/os.nom | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/object.nom b/lib/object.nom index 8d59190..81632c2 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -90,7 +90,7 @@ compile [object %classname extends %parent %class_body] to: class.__index = class class.class = class class.__tostring = function(inst) - return inst.name..getmetatable(dict{}).__tostring(inst) + return inst.name..getmetatable(_Dict{}).__tostring(inst) end \(%class_body as lua statements) diff --git a/lib/os.nom b/lib/os.nom index 5af6543..4edccb9 100644 --- a/lib/os.nom +++ b/lib/os.nom @@ -32,7 +32,7 @@ compile [for file %f in %path %body] to (..) compile [%expr for file %f in %path] to (..) Lua value ".." (function() - local ret = list{} + local ret = _List{} for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do ret[#ret+1] = \(%expr as lua statements) end -- cgit v1.2.3