From 6728587dfc6a5f4090f2673113ffedb2be924daf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Jul 2018 20:27:15 -0700 Subject: Auto-formatted and auto-upgraded everything! --- lib/object.nom | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/object.nom') diff --git a/lib/object.nom b/lib/object.nom index ae52d99..f717cef 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -1,8 +1,9 @@ -#!/usr/bin/env nomsu -V2.4.4.3 +#!/usr/bin/env nomsu -V2.5.4.3 # This file contains the implementation of an Object-Oriented programming system. use "core" + compile [@, me] to (Lua value "self") compile [method %actions %body] to: %lua = (compile as (action %actions %body)) @@ -12,7 +13,10 @@ compile [method %actions %body] to: to %lua write "\nclass.\(% as lua id) = \(% as lua id)" return (..) - Lua "do -- Method: \(%actions.(1).stub)\n \%lua\nend" + Lua ".." + do -- Method: \(%actions.(1).stub) + \%lua + end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3