switch scilab functions protection mode
funcprot(prot) previousprot = funcprot(prot) prot = funcprot()
an integer with possible values 0, 1, 2
an integer with possible values 0, 1, 2 returns previous value
Scilab functions are variable, funcprot allows the user to specify
what Scilab do when such variables are redefined.
If prot == 0 nothing special is done.
If prot == 1 Scilab issues a warning message when a function is redefined (default mode).
If prot == 2 Scilab issues an error when a function is redefined.
| Version | Description |
| 5.4.0 | Previous value is returned as output argument when setting a new value. |