1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>funcprot</TITLE>
6
<TYPE>Scilab Function</TYPE>
8
<SHORT_DESCRIPTION name="funcprot"> switch scilab functions protection mode</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>prot=funcprot() </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>funcprot(prot) </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>prot</PARAM_NAME>
18
<SP>: integer with possible values 0,1,2</SP>
25
Scilab functions are variable, funcprot allows the user to specify
26
what scilab do when such variables are redefined.
29
<DESCRIPTION_ITEM label="*">
30
<SP>If prot==0 nothing special is done</SP>
32
<DESCRIPTION_ITEM label="*">
33
<SP>If prot==1 scilab issues a warning message when a function is redefined (default mode)</SP>
35
<DESCRIPTION_ITEM label="*">
36
<SP>If prot==2 scilab issues an error when a function is redefined</SP>
43
deff('[x]=foo(a)','x=a')
44
deff('[x]=foo(a)','x=a+1')
47
deff('[x]=foo(a)','x=a')
48
deff('[x]=foo(a)','x=a+1')