• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

How does an operation that relates to a value relate to a table that is in order. (2 Viewers)

AI_Messiah

Newcomer
Joined
Mar 15, 2021
Messages
9
Reaction score
0
I would like to be able to define some operations that relate to tables. Should I create a type that is a table.
 

GavinW

Newcomer
Creator of RiscLua
Joined
Oct 21, 2020
Messages
43
Reaction score
17
Age
82
Location
UK
Website
www.wra1th.plus.com
Lua:
t = { val = 3, func = function (self) print (self.val) end, }
t:func ( ) -- > 3
 
Last edited:
Top