[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Safe an quick way to determine context in a C-function
- From: TNHarris <telliamed@...>
- Date: Tue, 5 May 2009 19:46:20 -0400
On Tue, 5 May 2009 20:12:23 -0300
Luiz Henrique de Figueiredo <firstname.lastname@example.org> 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().