lua-users home
lua-l archive

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


> Right but lua_tostring returns const char* so any attempt to modify the
> string should be caught by the compiler.

Yes, but it is way too easy to cast the result into (char*), in order
to fix the compilation error...
So the programmer has to understand that it is really forbidden to
modify that string.