lua-users home
lua-l archive

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


Why doesn't Lua have nameless labels or something?

Would look somewhat like this:
    local s = "start"
    ::@::
    print s
    if s == "restart" then
        goto +
    end
    if s == "start" then
        s = "restart"
        goto -
    end
    ::@::
    print "end"