lua-users home
lua-l archive

Re: Noob question -- On error, exit function and terminate script

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


On 25/06/2011 18.58, Xavier Wang wrote:
[snip]
Some Idea:
may be the last one statement of a block maybe a expression, so we can
write:
do condition or error( msg ) end
IIRC one of the objection of this approach (or similar ones proposed for "expression as statements") is that they confuse the parser, but
I'm not an expert, so I cannot comment on this.
this may better.
I like the idea of lazy evaluation, also.

AltStyle によって変換されたページ (->オリジナル) /