![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395104x1.png)
5
When you use the
The commands to compile and execute shrvar_prog.p and shrvar_mod.p with the
hostname% pc
shrvar_mod.p: Linking: hostname% a.out
From MAIN, before PROC: 1
From PROC : 0
From MAIN, after PROC: 1
Without
global := global + 1;
is not reflected in shrvar_prog.p; instead, each file uses its own private copy of global.
The following sections describe five ways of sharing variables and routines across units when you compile your program with
The following examples uses the public attribute in the var declaration to make global public when you compile your program with
80 | Pascal 4.0 User’s Guide |