From 227c2f0ed83dda049173700ebfa39b664cc84065 Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 31 Jan 2020 14:54:19 +0100 Subject: comments, actual working things --- base.moon | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 base.moon (limited to 'base.moon') diff --git a/base.moon b/base.moon new file mode 100644 index 0000000..4fc2c98 --- /dev/null +++ b/base.moon @@ -0,0 +1,32 @@ +class Constant + new: (@value) => + get: => @value + getc: => @value + + __tostring: => "" + +class OP + new: (@node) => + @setup @node\tail! + + patch: (next) => + @node = next + @setup @node\tail! + + update: (dt) => + + get: => @value + getc: => + print "WARN: stream to constant", debug.traceback! + @value + + destroy: => + + __tostring: => "" + __inherited: (cls) => + cls.__base.__tostring = @__tostring + +{ + :Constant + :OP +} -- cgit v1.2.3