Scilab 5.4.1
- Scilab help
- Advanced functions
- Built-in & external
- Libraries
- profiling
- argn
- bytecode
- bytecodewalk
- code2str
- comp
- deff
- edit
- exec
- execstr
- fun2string
- funcprot
- function
- functions
- getd
- head_comments
- listfunctions
- macr2lst
- macr2tree
- macro
- macrovar
- mode
- overloading
- recompilefunction
- sciargs
- str2code
- tree2code
- varargin
- varargout
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function
funcprot
switch scilab functions protection mode
Calling Sequence
funcprot(prot) previousprot = funcprot(prot) prot = funcprot()
Arguments
- prot
integer with possible values 0, 1, 2
- previousprot
integer with possible values 0, 1, 2 returns previous value
Description
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.
Examples
History
Version | Description |
5.4.0 | Previous value is returned as output argument when setting a new value. |
Report an issue | ||
<< fun2string | Advanced functions | function >> |