lua-users home
lua-l archive

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



On Feb 23, 2005, at 11:11, Mark Hamburg wrote:

You want: pcall( require, aName )

Oooops... my bad... thanks :)

By the way, would it be safe to, er, redefine the error() function to not stop the interpreter?

I somewhat understand the motivations behind the current behavior as explained in PIL 8.4 Error Handling and Exceptions, but... in my case... the Lua interpreter _is_ the fabled "application program [doing] the handling"... and I fail to see any concrete benefits in having the interpreter just call it quit each time a puny error is raised.

In short, can I safely redefine error() to my liking?

TIA :)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/