lua-users home
lua-l archive

Re: Safe an quick way to determine context in a C-function

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


On Tue, 5 May 2009 20:12:23 -0300
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> 
> But panic functions are for exactly that: panic. They should not be
> used for ordinary flow control.
This is true. I still use pcall for gracefully handling errors. The
panic exception falls onto a top-level try-catch that displays an error
message then bails on the script. Since Lua is living in an
application plugin, I don't want to call exit().
-- tom
telliamed@whoopdedo.org

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