lua-users home
lua-l archive

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


2014-08-28 4:17 GMT+02:00 Thiago L. <fakedme@gmail.com>:
> It would be cool if you could use break with do ... end for some sort of
> "safe goto"
>
> Example:
>
> do
> break
> local x = "you'll never see me"
> print(x)
> end
> print("something")
>
> Would print "something"

If I simply put "for _=1,1" in front of your example, it runs.

I note that you posted this at 23:07 local time :-)