lua-users home
lua-l archive

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


On Thu, Jul 28, 2022 at 5:49 PM Lorenzo Donati wrote:
I would welcome a syntax like "break 4", to exit four loop levels.

Should the following statements also be valid?

break 0x4

break 3+1  -- arithmetic _expression_ calculable at compile time

local level <const> = 3
break level+1  -- arithmetic _expression_ with <constants> in it