Hi there,
I have GAUSS code with multiple proc
functions. To make it work in the GAUSS Engine, how can I make all proc
functions execute by calling only one procedure?
This is my current last code:
route("/example", "biv", "a,b,c,d");
1 Answer
0
There is nothing special about the GAUSS Engine for this. If you create a program file like this:
ret = mainproc(1, 2, 3); proc (1) = mainproc(a, b, c); local mult, add; mult = multiply(a, b, c); print "mult = "; add = add(a, b, c); print "add = " add; retp(mult + add); endp; proc (1) = add(a, b, c); retp(a + b + c); endp; proc (1) = multiply(a, b, c); retp(a * b * c); endp;
whenever you call mainproc()
, GAUSS or the Engine will also cal add()
and multiply()
.
Your Answer
1 Answer
0
There is nothing special about the GAUSS Engine for this. If you create a program file like this:
ret = mainproc(1, 2, 3); proc (1) = mainproc(a, b, c); local mult, add; mult = multiply(a, b, c); print "mult = "; add = add(a, b, c); print "add = " add; retp(mult + add); endp; proc (1) = add(a, b, c); retp(a + b + c); endp; proc (1) = multiply(a, b, c); retp(a * b * c); endp;
whenever you call mainproc()
, GAUSS or the Engine will also cal add()
and multiply()
.