aboutsummaryrefslogblamecommitdiff
path: root/oop_example.lua
blob: a4e70093415b2ac05b6f1329fb54afff13076fdf (plain) (tree)
1
2
3
4
5
6
7






                   
a = nerv.point()
print(a:get_sinx())
a:set_x(3.14)
print(a:get_sinx())
print(a[2])
a[2] = 3
print(a[2])