31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PASDDT: THE <strong>PASCAL</strong>-<strong>20</strong> DEBUGGER<br />

9.3 SCOPE<br />

Scope is the range within the program in which a specific definition<br />

of an identifier exists. The scope corresponds to the part of the<br />

program in which the identifier can be used. Figure 9-1 shows the<br />

scope of three variables in program Modules. The scope of the<br />

identifier A (a global variable) is the entire program. The scope of<br />

variable B, declared in procedure Outer, is the entire procedure,<br />

including procedure Inner. The scope of variable C is limited to<br />

procedure Inner.<br />

A<br />

SCOPE<br />

PROGRAM Modu 1 (;~S (I NF'UT, OUTPUT);<br />

VAR A : INTEGER := 0;<br />

F' t, 0 C E D LJ F~ E (J 1..1 t f!' T' ;<br />

VAF~ B : I NTEGEF~;<br />

PROCEDUHE Inner,<br />

VAH C INTEGEf

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!