lua-users home
lua-l archive

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

I’m curious - Why is it inconvenient? Nothing after that break or return statement can be executed, after all.


If you’re just adding a return for debugging reasons then “do return end “ is easy enough.




From: [] On Behalf Of jason zhang
Sent: 18 September 2006 10:26
To: Lua list
Subject: the break and return limitation



Could anyone explain why the break and retuan must appear as the last statement of a block?

This is really a unconvenient feature. Is it a special design?


Thank you