Is it possible to name a function a Lua reserved word, such as print, or next?
I tried using quotation marks and apostrophes (like 'next' or "next"), however it still returned an error. No big deal if it isn’t possible, but it’s more for organization’s sake.
Still underlines in orange, any way to get rid of it, thinking that’s what mislead me. No big deal if it isn’t possible. Also didn’t know that was possible, thanks!
The orange underline is probably just a warning if you are using a function name that is the same as a predefined global or such. You can hover over it to see what it’s complaining about.
It indicates that it’ll overridden. For some reason it’s not underlined when doing local function print() instead of function print(), may that’ll work?
You can follow the suggestion by the editor and write local function next() instead. In fact, all of your functions should already be declared local anyways.
Doing local x will just localize x to that scope, while function x() will set the value of x to that function. If you were to run number1() before defining number2 as a variable, it’d still error since number2 doesn’t have a value yet.