In Lua what is the difference between these two function declarations. I'm trying to use Gspot (side note what is up with that name?!) to make some UI elements and I'm wondering if my errors are coming from this difference.
pixelfixation wrote: ↑Sat Dec 07, 2019 12:31 am
Hey guys newbie question.
In Lua what is the difference between these two function declarations. I'm trying to use Gspot (side note what is up with that name?!) to make some UI elements and I'm wondering if my errors are coming from this difference.
They seem pretty much the same to me but I haven't touched Lua before yesterday. Thanks!
Previous era, people didn't care about naming their libs juvenile things.
Anyway, both declarations are equivalent, the second is just syntax sugar for the first, since functions are first-class values in lua; i edited the above quoted code blocks though so that it shows the correct syntax for both (minus the dots, that's just there to denote stuff goes inside )
Your issues are probably elsewhere.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.