Composite Types

Types you build yourself: record, array, and the pointer that keeps confusing everyone at first.

Articles

1

User-Defined Data Types in Pascal

User-defined data types in Pascal come in 2 kinds, Enumerated and Subrange, and you declare both of them yourself.

2

Using the RECORD Data Type in Pascal

RECORD is a structured data type in Pascal, built from a collection of standard and user-defined data types.

3

Using the Array Data Type in Pascal

An ARRAY is a structure that holds a set of data with the same type, and you reach each item in it through its index.

4

Using Pointers in Pascal

A variable of pointer type can only hold the address of another variable, and changing it changes that other variable.

5

Pascal Dynamic Arrays: the Sixth Score That Never Got Counted

Six scores go in, five get counted, and the mean prints 78.0 because a fixed array stopped reading at MAX. SetLength gives the array the length the data asks for, and it also changes what assignment means.

For developers who learn by struggling

© 2026 Inva.dev.