aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-09-06 12:46:39 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-09-06 12:48:16 -0700
commita35d010dfe2b2769cf13ae508952c279aecb3aac (patch)
tree69ce1fcd0123832599d2766d361a8a8b43fcfb4b /lib
parente1bc075bb5319b3903f66e141810dcb9ef53042e (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/object.nom2
-rw-r--r--lib/os.nom2
2 files changed, 2 insertions, 2 deletions
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