View Single Post
04/29/18, 10:20 AM   #4
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
votan already explained it, but I'll give an example:

lua Code:
  1. str = "HELLO"
  2.  
  3. string.lower(str) -- uses lower's parent class string and applies the function to our argument str. GOOD
  4. str:lower() -- passes str to lower and lower assumes str is a string. GOOD
  5. str.lower() -- str does not have any functions and this will fail. BAD
  Reply With Quote