WoWInterface - View Single Post - how is better to write ...
View Single Post
03-29-20, 11:54 AM   #3
A Rage Talon Dragon Guard
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 310
Hi myrroddin,

So it is better to write functions in this way ?

Lua Code:
  1. dataobject.OnClick = function(object, button)
  2.     -- open configuration
  3. end

even if I put them out of its context ?

But I'd like to know also if it could be a problem to write in the other way or at the end of the story both syntax works in the same way with the same results.

Thanks so much for your time.

This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote