[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: break operator
- From: David Manura <dm.lua@...>
- Date: Tue, 11 Aug 2009 23:42:59 -0400
On Tue, Aug 11, 2009 at 6:45 AM, Eike Decker wrote:
> ...wouldn't it be more nice if this would work as well this way:
>
> while true do
> local line = readline() or break
> ...
> end
A few Perl-like things along these lines are in [1].
[1] http://lua-users.org/wiki/MetaLuaRecipes