[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] break do end
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 28 Aug 2014 09:30:12 +0200
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 :-)