Subroutine Calls

Top  Previous  Next

Another simple statement is a call to a subroutine. It merely consists of the name of the subroutine, which can be a procedure, an intrinsic, or an external.

 

(This is explained further in the SUBROUTINES section.)

 

A call can send some values, known as arguments, to the subroutine. In this case the call has the form:

 

        NAME(EXPRESSION, EXPRESSION, ... EXPRESSION)

 

Here are some examples of subroutine calls:

 

        MakeNumber;

        CrLf(0);

        Text(0, "Too low")

 

The first example is a procedure call. The second example calls the new-line intrinsic and passes the argument 0. The last example is an intrinsic call with two arguments.