lua-users home
lua-l archive

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


On 2014-01-11 12:58 PM, "Thiago L." <fakedme@gmail.com> wrote:
>
> 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"
>

Because that looks hideous. This isn't assembly.