Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have seen Lua code with functions like strfind; why doesn it work?

code functions Lua seen
0
Posted

I have seen Lua code with functions like strfind; why doesn it work?

0

Functions like strfind mean that this is Lua 4.0 code; these functions are now in tables, like string.find. Look at the standard libraries section of the manual. In Lua 5.1, all strings have a metatable pointing to the string table, so that s:find(‘HELLO’) is equivalent to string.find(s,’HELLO’).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123