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.

<strong>PASCAL</strong> DATA TYPES<br />

Fo rma t<br />

RECORD<br />

field id : type<br />

variant clause }<br />

[;field id<br />

type ... ]<br />

[variant clause]<br />

END;<br />

where:<br />

field id<br />

type<br />

variant clause<br />

specifies the names of one or more<br />

fields. The names must be identibfiers<br />

and must be separated by commas.<br />

specifies the type of the correspond ing<br />

field(s). A field can be :=Iny type.<br />

specifies the variant part of the<br />

record. See Section 2.3.7..1 fo r the<br />

fo rma t of a variant c]ause.<br />

The names of the fields must be unique within the record, but can be<br />

repeated in different record types. For instance, you could define<br />

the field NAME only once within a particular record type. Other<br />

record types, however, could also have fields called NAME.<br />

The values for the fields are stored in the order in which the<br />

are defined, for example:<br />

fields<br />

VAf~ TealYl ... HE'C ! F,[COHD<br />

I,J:i.n'5: INTEGEH;<br />

Losses : INTEGER;<br />

Pe T'cent : F

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

Saved successfully!

Ooh no, something went wrong!