HP Pascal/HP-UX Release Notes Version A.10.08
Chapter 1 45
New and Changed Features
Porting HP Pascal/HP-UX Programs
Control Constructs
• The TRY/RECOVER construct is supported on all HP-UX
implementations. Escape codes for errors differ significantly between
the implementations.
• The mark and release procedures are supported on all HP-UX
implementations. There are minor differences in behavior but code is
essentially portable.
Input/Output
• Series 300/400 and 700/800 differ in the way each allows association
with an HP-UX file descriptor in the reset procedure. The
association is not similar in the associate procedure.
• Series 700/800 uses an option string parameter on reset, rewrite,
open, and append procedures. Series 300/400 ignores this parameter.
• On the Series 700/800, if stdout is a terminal, the output is
unbuffered. If stdout is a file, the output is line-buffered.
• Series 300/400 requires the declaration of stderr after declaring it
as a program parameter; Series 700/800 does not.
• Series 700/800 implements the fnum function; Series 300/400 does
not.
• Series 300/400 and 700/800 differ in how each handles eof, get, and
put with direct access files.
• The close procedure has different default behavior on each system.
Modules
• Modules are supported on all HP-UX implementations but some
syntactic and semantic differences exist. For example, Series 700/800
requires that CONST, TYPE, and VAR declarations precede routine
declarations within the EXPORT section, whereas Series 300/400
permits them to be intermixed.
• Series 300/400 permits separate compilation only within modules.
Series 700/800 can compile outside modules by using the
SUBPROGRAM, GLOBAL, and EXTERNAL compiler options.