From 3036cc0f7597d72a36b1923ab5e0c56a4490be31 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 25 May 2015 11:10:06 +0800 Subject: remove old class example --- class_example.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 class_example.lua diff --git a/class_example.lua b/class_example.lua deleted file mode 100644 index ab69b70..0000000 --- a/class_example.lua +++ /dev/null @@ -1,24 +0,0 @@ -A = nerv.class() -function A:_init(x) - self.x = x -end -function A:f() - return self.x -end - -function A:g() - return self.x + 1 -end - -B = nerv.class(A) - -function B:f() - return self.x * self.x -end - -a = A(3) -b = B(3) -print(a:f()) -print(b:f()) -print(b:g()) - -- cgit v1.2.3-70-g09d2