File: intppty.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (56 lines) | stat: -rw-r--r-- 1,656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH intppty 1 "Nov 1999" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
intppty - set interface argument passing properties 
.SH CALLING SEQUENCE
.nf
funs=intppty()
intppty(fun)
.fi
.SH PARAMETERS
.TP 10
fun
: integer an interface number (see funptr)
.TP 10
funs
: integer vector, vector of interface number (see funptr)
.SH DESCRIPTION
The interface programs may be written in 2 different ways for the mode
of function argument passing.
.LP
In the first and default way, the arguments are passed by value.
With the following syntax:
.nf
foo(A,1+2)
.fi
the argument associated with \fVA\fR will be passed by value (a copy
of \fVA\fR is made before \fVfoo\fR is called, and
the argument associated with \fV1+2\fR will be passed by value.
.LP

In
the second way arguments may be passed be reference if there are
"named arguments" (no copy of the variable value is
done). \fVintppty(fun)\fR with \fVfun>0\fR tells Scilab that the
interface with number \fVfun\fR can handle arguments passed by
reference. With the following syntax:
.nf
foo(A,1+2)
.fi
the argument associated with \fVA\fR will be passed by reference, and
the argument associated with \fV1+2\fR will be passed by value.
.LP
Warning, declaring that the interface with number
\fVfun\fR can handle arguments passed by reference if it is not the
case should produce unpredictable results.
.LP
\fVintppty(fun)\fR with \fVfun<0\fR suppress this property
for the interface \fV-fun\fR.
.LP
\fVintppty()\fR returns the vector of interfaces which handle
arguments passed by reference.
.LP
This function may be useful for dynamically loaded interface (see
addinter).
.SH SEE ALSO
funptr, addinter