forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Protect
angerangel edited this page Mar 19, 2013
·
1 revision
PROTECT value /deep /words /values /hide
Protect a series or a variable from being modified.
PROTECT is a native value.
- value (word! series! bitset! map! object! module!)
- /deep -- Protect all sub-series/objects as well
- /words -- Process list as words (and path words)
- /values -- Process list of values (implied GET)
- /hide -- Hide variables (avoid binding and lookup)
#SOURCE
protect: make native! [ [
{Protect a series or a variable from being modified.}
value [word! series! bitset! map! object! module!]
/deep "Protect all sub-series/objects as well"
/words "Process list as words (and path words)"
/values "Process list of values (implied GET)"
/hide "Hide variables (avoid binding and lookup)"
] ]