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

  • From: Mike Pall <mike-1302@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 27 Feb 2013 16:49:24 +0100

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: