About 51 results
Open links in new tab
  1. function - Difference between . and : in Lua - Stack Overflow

    Difference between . and : in Lua Asked 14 years, 10 months ago Modified 1 year, 4 months ago Viewed 80k times

  2. What does operator ~= mean in Lua? - Stack Overflow

    Nov 18, 2020 · What does the ~= operator mean in Lua? For example, in the following code: if x ~= params then

  3. Lua operators, why isn't +=, -= and so on defined?

    Nov 20, 2013 · In Lua's case, the language is intended to be an embedded scripting language, so any changes that make the language more complex or potentially make the compiler/runtime …

  4. What does # mean in Lua? - Stack Overflow

    I have seen the hash character '#' being added to the front of variables a lot in Lua. What does it do? EXAMPLE -- sort AIs in currentlevel table.sort (level.ais, function (a,b) return a.y < b...

  5. Lua - Current time in milliseconds - Stack Overflow

    Is there a common way to get the current time in or with milliseconds? There is os.time(), but it only provides full seconds.

  6. Inline conditions in Lua (a == b ? "yes" : "no")? - Stack Overflow

    May 3, 2013 · There is a nice article on lua-users wiki about ternary operator, together with problem explanation and several solutions.

  7. Why does Lua have no "continue" statement? - Stack Overflow

    The Lua authors felt that continue was only one of a number of possible new control flow mechanisms (the fact that it cannot work with the scope rules of repeat/until was a secondary …

  8. Lua: Rounding numbers and then truncate - Stack Overflow

    Aug 19, 2013 · 15 If your Lua uses double precision IEC-559 (aka IEEE-754) floats, as most do, and your numbers are relatively small (the method is guaranteed to work for inputs between -2 …

  9. Perguntas 'lua' mais recentes - Stack Overflow em Português

    Jul 27, 2023 · Lua é uma linguagem de script rápida e leve, projetada para estender aplicações. É tipada dinamicamente, interpretada a partir de bytecodes, e tem gerenciamento automático …

  10. How do I use the bitwise operator XOR in Lua? - Stack Overflow

    May 12, 2011 · How can I implement bitwise operators in Lua language? Specifically, I need a XOR operator/method.