Commit Graph

18 Commits

Author SHA1 Message Date
Linden
dcdfe6e442 fix(class): private access in method calls
Maybe there's better ways, but if it works..?
2024-04-18 23:19:09 +10:00
Linden
774da8f755 fix(class): use rawset during instantiation
If classes use a __newindex method it may lead to unexpected behaviour.
2024-04-13 11:15:30 +10:00
Linden
1456f4493e refactor(class): remove support for class.init 2024-03-25 20:48:09 +11:00
Linden
e031f19bea refactor(class): improve types 2024-03-25 20:14:49 +11:00
Linden
356f46d7ef fix(class): only show warning if constructor is undefined 2024-03-13 00:01:17 +11:00
Linden
d105ebe7fe refactor(class): improve types 2024-03-12 19:54:33 +11:00
Linden
8180feaa8c fix(class): disallow calling constructor from objects 2024-03-12 19:54:11 +11:00
Linden
0d1140a54e feat(class): true private fields 2024-03-12 17:37:18 +11:00
Linden
6f4f11ddb5 feat(class): deprecate init in favour of constructor 2024-03-12 16:10:57 +11:00
Linden
3135058310 refactor(class): stricter type-checking 2024-03-12 16:09:28 +11:00
Linden
105d265792 feat(class): add temporary super method during class init 2024-03-11 14:58:54 +11:00
Linden
92dc3688f8 feat(class): recursive instanceOf and isClass method 2024-03-11 11:21:07 +11:00
Linden
de49dff9b0 feat(class): add instanceOf method 2024-03-11 09:06:58 +11:00
Linden
d806668c65 refactor(class): use mixins for default class methods 2024-03-11 09:06:36 +11:00
Linden
1d449d407d chore(class): remove sample code 2023-12-24 16:12:59 +11:00
Linden
dc0720a39e refactor(class): syntax and method changes
Remove .new field when creating a new class.
Remove setMetamethod.
Support super inheritance.
2023-12-19 14:32:36 +11:00
Linden
8a5232c056 refactor(class): type checking 2023-12-18 11:21:28 +11:00
Linden
955acabd3c feat(class): basic class implementation
wip, feedback appreciated.
2023-12-18 00:15:17 +11:00