lua-users home
lua-l archive

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




2011/6/26 Lorenzo Donati <lorenzodonatibz@interfree.it>
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.


if the _expression_ only occur on the last position of block, is there still has confusion?