lua-users home
lua-l archive

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


If I create a variable using (for example):

lua_pushstring(L, "Hello world");
lua_setglobal(L, "MyHelloString");

Is there any way to make that variable read only (or 'constant') in 
the script, ie any attempt to change their value results in an error?

Chris