Re: Trivial bug in bitop's bit.c: luaopen_bit()

  • From: Marc Lepage <mlepage@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 27 Feb 2013 11:49:59 -0500

That makes sense, thanks Mike. I have some code where I was pcalling and it
did seem like overkill.

Didn't realize my phone was sending HTML messages, I'll look for a setting,
thanks.


On Wed, Feb 27, 2013 at 10:49 AM, Mike Pall <mike-1302@xxxxxxxxxx> wrote:

> mlepage@xxxxxxxxxxxx wrote:
> > I guess it is OK to lua_call, or is it preferable to lua_pcall?
>
> I don't think it makes sense to catch errors there. Any error in
> luaopen_* is fatal, since you can't proceed without the library,
> anyway. So you might as well let the errors propagate to an outer
> pcall or, as a last resort, the panic function.
>
> BTW: Please do not send HTML messages to the mailing list.
>
> --Mike
>
>

Other related posts: