GAUSS code with multiple proc

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().

admin

47

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().


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.