Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
language:types2:data [2024/07/18 16:17] – [Data types] rajit | language:types2:data [2024/07/18 16:23] (current) – [Structures] rajit | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | A data type is defined using '' | + | A user-defined |
- | to an integer or Boolean value, | + | * //data types//, which correspond to representations of the built-in '' |
- | construct like a record or structure (from software | + | * // |
- | languages). The syntax is similar to a process, and the constraints | + | |
- | about declarations/ | + | ===== Data types ===== |
+ | |||
+ | A data type corresponds to an integer or Boolean value, | ||
+ | could also be a composite construct like a record or structure (from software | ||
+ | programming | ||
+ | about declarations/ | ||
+ | the underlying built-in '' | ||
+ | level of abstraction. | ||
Often data types have some additional structure that is not required for a | Often data types have some additional structure that is not required for a | ||
Line 112: | Line 119: | ||
The distinction between a structure and another data type is that other data types are | The distinction between a structure and another data type is that other data types are | ||
implementations of one of the built-in types like '' | implementations of one of the built-in types like '' | ||
+ | |||
+ | ==== Pure structures ==== | ||
+ | |||
+ | A pure structure is one that only contains other pure structures or '' | ||
+ | In other words, they are structures that don't include channels. Structures like this correspond | ||
+ | to what is normally viewed as a record/ | ||
+ | |||