![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395240x1.png)
9
This error message is generated when you compile unreached.p.
hostname% pc unreached.p
Tue Feb 14 14:21:03 1995 unreached.p:
w 18630 line 8 - Unreachable statement
A statement is considered to be reachable if there is a potential path of control, even if it cannot be taken. Thus, no diagnostic is produced for the statement:
if false then writeln('Impossible!')
The goto Statement
Pascal detects and produces an error message about goto statements that transfer control into structured
Uninitialized Variables
Pascal does not necessarily set variables to an initial value unless you explicitly request that with the
Because variable use is not tracked across separate compilation units, pc does nothing about uninitialized or unused variables in global scope, that is, in the main program. However, pc checks variables with local
Unused Variables, Constants, Types, Labels, and Routines
If you declare a variable, constant, type, procedure, or function in local scope but never use it, Pascal gives you a warning message. It does not do this for items declared in global scope because you can use the items in a separately compiled unit.
216 | Pascal 4.0 User’s Guide |