diff options
author | Determinant <[email protected]> | 2015-05-25 11:10:06 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-25 11:10:06 +0800 |
commit | 3036cc0f7597d72a36b1923ab5e0c56a4490be31 (patch) | |
tree | 4b79e2fe29e519f4cfe80fa57c2ea7163f5ef0e3 /class_example.lua | |
parent | 3ccca6ba1eb7b6732036f4128c977c0b02ef3836 (diff) |
remove old class example
Diffstat (limited to 'class_example.lua')
-rw-r--r-- | class_example.lua | 24 |
1 files changed, 0 insertions, 24 deletions
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()) - |