[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I'd give my right arm for a continue statement
- From: David Manura <dm.lua@...>
- Date: Sun, 23 Jan 2011 00:00:13 -0500
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