Quantcast Defining functions - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-12-13, 08:36 AM   #1
Mock
A Black Drake
AddOn Author - Click to view addons
Join Date: May 2007
Posts: 83
Defining functions

Hello

I'm fiddling around with some addons and I see people are using:

Code:
GetHealthText = function(unit, cur, max)
end

and

function GetHealthText (unit, cur, max)
end

What is the difference between these 2?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Defining functions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off