From 96e5e567cb208194793a56462b90fb02c9cfe927 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 16 Sep 2018 16:57:14 -0700 Subject: Working module system. --- core/metaprogramming.nom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/metaprogramming.nom') diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 93d5486..5d31c2b 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -372,7 +372,8 @@ compile [command line args] to (Lua value "arg") compile [with local compile actions %body] to (..) Lua "\ ..do - local nomsu = table.fork(nomsu, {COMPILE_ACTIONS=table.fork(COMPILE_ACTIONS)}) + local nomsu = nomsu:fork() + local COMPILE_ACTIONS = nomsu.environment.COMPILE_ACTIONS \(%body as lua statements) end" -- cgit v1.2.3