lua-users home
lua-l archive

Re: try..catch for Lua 5.2?

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


2010年9月11日 Dušan Majkić <dmajkic@gmail.com>:
>> could at least we have some syntactical sugar over the pcall mechanism?
>
> Since there is no "begin" in lua, I'll wote for leaving out "try".
What do you mean by "begin"? If you want an explicit lexical scope,
you can always use do...end.
~Jonathan

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