lua-users home
lua-l archive

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


On Sat, Jan 22, 2011 at 10:06 PM, dcharno <dcharno@comcast.net> wrote:
> I found it interesting that continue is used in 55 places in Lua 5.1.4 ;)

IIRC, at least some of those uses of continue simulate tail-calls
(which Lua implements but C does not).  When I ported the string
library to Lua [1], the `continue` statements there were more
appropriately re-expressed in Lua as tail calls.

[1] http://lua-users.org/wiki/StringLibraryInLua