summaryrefslogtreecommitdiff
path: root/examples/oop_example.lua
blob: 45da36e90055afb4adcf82364d48f8980a536611 (plain) (blame)
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])