lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 11/06/2014 10.29, Axel Kittenberger wrote:
That has always been the argument from the Lua
team to why there is no switch statement in Lua. Not like for example in C
where it is in fact a computed goto.

To be nitpicking, where it could be a computed goto, according to what the optimizer decides (I'm just looking at some asm produced by a C compiler and I am not seeing a computed goto where I expected it).

--
  Enrico