Re: Extending Euphoria with Fallbacks
On 26 Mar 2001, at 16:39, David Cuny wrote:
>
> Some time ago, I ran across the Lua language:
>
> http://www.tecgraf.puc-rio.br/lua/
>
> There's a short paper at:
>
> http://www.tecgraf.puc-rio.br/lua/spe.html
>
> One of the more interesting features is the handling of errors. It
> uses
> 'fallbacks', which catch run-time abnormal conditions. The
> programmer has
> the option of catching illegal operations, and choosing what to do
> about it.
It also has:
dostring (string [, chunkname])
Executes a given string as a Lua chunk. If there is any error executing the
string,
then dostring returns nil. Otherwise, it returns the values returned by the
chunk,
or a non-nil value if the chunk returns no values. The optional parameter
chunkname is the ``name of the chunk'', used in error messages and debug
information.
Kat
|
Not Categorized, Please Help
|
|