View Single Post
03/13/24, 11:21 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,999
Also remember that the : notation for function calls shoud be used for created objects of classes (created via ZO_Object:SubClass() e.g. where you can use self to reference the created object), and not simple tables {}.

So if SR = {} only, better do not use function SR:FunctionName but SR.FunctionName and calls as well via . and not : notation.
Easier to read and to understand.

In the end it works with : too, right. But the usage of "self" for simple tables is not intended afaik
  Reply With Quote