From lua-l Mon Jun 19 00:54:04 2000 From: Yutaka Ueno Date: Mon, 19 Jun 2000 00:54:04 +0000 To: lua-l Subject: Re: labels Message-Id: <20000619005405.23711 () etlpom ! etl ! go ! jp> X-MARC-Message: https://marc.info/?l=lua-l&m=113878329728689 Luiz Henrique de Figueiredo wrote : >We are now inclined towards removing these labels (but keeping "break".) >Would anyone have a *good* use for labels? There is my idea, but I am not sure if this is possible. Here, a function label() is a kind of setjmp(). local label1,label2 label1=label() while(1) do label2=label() while(1) do ... break(label1) end ... break() -- nil : the current loop end ---ueno