View Single Post
03/01/14, 05:28 PM   #5
zork
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 29
@jqm
Nothing. But d() has conditions for emitting a table that one does not need here. When you call d() with a string it will call EmitMessage which does nothing but CHAT_SYSTEM:AddMessage(text). Which is what I do aswell.

@Son of a Sailor
I don't want to leak to many functions or variable to the global namespace. So first of all addon is a local object. Secondly everything I do should be encapsuled in my addon object. That is why I define functions on my addon object and not just local functions. But you could do that with local functions only aswell. There are different ways to reach the same goal.

Last edited by zork : 03/01/14 at 05:51 PM.
  Reply With Quote