can i make files read only with a function? yes: what function?
can i protect values and variables to be protected so that they are "read only"? yes: what function?
protection
Started by wilcomega, Jan 01 2013 07:37 AM
2 replies to this topic
#1
Posted 01 January 2013 - 07:37 AM
#2
Posted 01 January 2013 - 08:26 AM
1. You can remake the fs API to check if a file is protected
2. No clue. I'm not sure if Lua has constants.
2. No clue. I'm not sure if Lua has constants.
#3
Posted 01 January 2013 - 08:41 AM
1. As mentioned by zekesonxx .
2. Lua has no constants but that doesn't matter. You should read up on environments and metatables. You could alter the way the environment table indexes. But still, to make it perfectly secure would be terribly elaborate and you'd have to deep copy each value, otherwise they could use the returned references for altering the values I guess.
2. Lua has no constants but that doesn't matter. You should read up on environments and metatables. You could alter the way the environment table indexes. But still, to make it perfectly secure would be terribly elaborate and you'd have to deep copy each value, otherwise they could use the returned references for altering the values I guess.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











