diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-26 03:10:41 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-26 03:10:41 +0200 |
commit | 0866dec8387a5ce6d5a547338147beda932114dc (patch) | |
tree | 02ff6ba2f3d4179230fee679cd8238ac1cc14fd7 /readme.md | |
parent | eacf0f60c0752616407fbca6cd9d8ca9757ce624 (diff) | |
download | object-0866dec8387a5ce6d5a547338147beda932114dc.zip object-0866dec8387a5ce6d5a547338147beda932114dc.tar.gz object-0866dec8387a5ce6d5a547338147beda932114dc.tar.bz2 |
Usage of self.__super is discouraged
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,7 +26,7 @@ assert(a:is(Object)) -- use `is()` method for it local Foo = Point:extends() -- you can extend whatever class you want function Foo:new (str, x, y) - self.__super.new(self, x, y) -- call super constructor first + Foo.__super.new(self, x, y) -- call super constructor first self.str = str -- do whatever else is left to be done end |