[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pcall & require?
- From: PA <petite.abeille@...>
- Date: Wed, 23 Feb 2005 11:23:03 +0100
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/