lua-users home
lua-l archive

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


Apologies on the version number!
As for the solution, that's just what I need. Many thanks

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Luiz Henrique
de Figueiredo
Sent: 15 September 2003 01:34
To: lua@bazar2.conectiva.com.br
Subject: Re: Overwriting variables by accident


>I have a small issue here (still using 4.1).

There's no 4.1...

>Is there anyway of deterimining whether a variable you have assigned is

>being overwritten/reassigned again so we can pop up an error to the 
>user concerned?

For Lua 5.0, see test/readonly.lua .
For Lua 4.0, see Q3.3 in http://lua-users.org/wiki/RetiredLuaFaq . --lhf