From a2f07415c5284bf94c146cea6eed4a15f171b9ab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 14:48:23 -0800 Subject: Deprecating (% as lua statements) and (% as lua return) --- core/coroutines.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/coroutines.nom') diff --git a/core/coroutines.nom b/core/coroutines.nom index 782c20e..27797fa 100644 --- a/core/coroutines.nom +++ b/core/coroutines.nom @@ -18,11 +18,11 @@ test: assume (%nums == [4, 5, 6, 6, 6]) or barf "Coroutine iteration failed" [coroutine %body, generator %body] all compile to "\ ..(function() - \(%body as lua statements) + \(%body as lua) end)" (-> %) compiles to "coroutine.yield(true, \((% as lua expr) if % else "nil"))" (for % in coroutine %co %body) compiles to "\ ..for _junk,\(% as lua expr) in coroutine.wrap(\(%co as lua expr)) do - \(%body as lua statements) + \(%body as lua) end" -- cgit v1.2.3