VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Incrementation in LUA
Programming Blog

Atom/RSS Feed


Incrementation in LUA


There is no such thing as Advanced Operators ++ or -- in Lua

-- comment

Therefore to increment a integer in LUA you have to do something like the following

a = a + 1

Why does Lua not support advanced operators

Lua's compiler is a single-pass recursive descent parser that instantanously converts to bytecode. This inherintly foreces some limitations on the grammar and semantics of Lua.

Join my mailing list