This commit is contained in:
2025-10-31 13:25:39 +01:00
parent d1d2b63be8
commit 42cfbc80ee
3 changed files with 86 additions and 12 deletions

24
test/main.lua Normal file
View File

@@ -0,0 +1,24 @@
f1() -- some function!
f2() -- some other function!
-- need class instance if you don't bind it with the function
print(m1(sc)) -- 24.5
-- does not need class instance: was bound to lua with one
print(m2()) -- 24.5
-- need class instance if you
-- don't bind it with the function
print(v1(sc)) -- 30
-- does not need class instance:
-- it was bound with one
print(v2()) -- 30
-- can set, still
-- requires instance
v1(sc, 212)
-- can set, does not need
-- class instance: was bound with one
v2(254)
print(v1(sc)) -- 212
print(v2()) -- 254