![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395236x1.png)
9
Error messages stating that scalar
type color = (red, green, blue)
standard Pascal does not associate these constants with the strings red, green, and blue in any way. Pascal adds an extension so that enumerated types can be read and written; however, if the program is to be portable, you must write your own routines to perform these functions.
Standard Pascal only allows the reading of characters, integers, and real numbers from text files, including input (not strings or booleans). You can make the following declaration:
file of color
However, the representation is binary rather than as strings, and it is impossible to define input as other than a text file.
Expression DiagnosticsThe diagnostics for semantically
212 | Pascal 4.0 User’s Guide |