Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   PROTECT value /deep /words /values /hide

DESCRIPTION

Protect a series or a variable from being modified.

PROTECT is a native value.

ARGUMENTS

  • value (word! series! bitset! map! object! module!)

REFINEMENTS

  • /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)"
] ]
Clone this wiki locally