Loads a compiled file at the beginning of the compilation of a source program.
The use command can be used ONCE at the TOP of a program to load in a compiled file which the rest of the program will be added to. In other words, if xy.e had the following lines:
library pgraph; external proc xy; x = seqa(0.1,0.1,100);
it could be compiled to
xy.gcg. Then the following program could be run:
use xy; xy(x, sin(x));
which would be equivalent to:
new; library pgraph; x = seqa(0.1,0.1,100); xy(x, sin(x));
library pgraph; external proc xy,logx,logy,loglog,hist; saveall pgraph;
This would create a file called
pgraph.gcg containing all the
procedures, strings and matrices needed to run PQG programs. Other
programs could be compiled very quickly with the following statement at
the top of each:
or the same statement could be executed once, for instance from the command prompt, to instantly load all the procedures for PQG.
use can appear only ONCE at the TOP of a program.