lua-users home
lua-l archive

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


Virgil Smith wrote:
> Will _ALERT work for your purposes?

It would, if there was one in Lua 5.0. I found nothing about it in
the docs. If I am not mistaken there used to be an _ALERT in Lua 3.2...

Regards,
Mark

> I am using Lua 5.0 in a library and would like to capture error
> messages. I used to do that with the function _ERRORMESSAGE in Lua
> 4.0, but it has been removed...
> 
> Is there any way to capture it other than capturing it when control
> returns to C? I would like to show the user the error message myself.
> 
> The compat.lua only references _ERRORMESSAGE in a comment but there
> is nothing else there about it.


-- 
|\/|ark Stroetzel Glasberg
mark@tecgraf.puc-rio.br

System Analyst
Tecgraf/PUC-Rio
URL:  http://www.tecgraf.puc-rio.br/~mark
Tel:  55 21 2512-5984 ext. 116
Fax:  55 21 2259-2232