Chapter 8 Composite Types

Type systems

Type systems

Records/Structures and Variants/Unions

Simplifying the syntax

with complex.complicated.deep.stuff do
begin

  fieldx := 'STUFF GOES HERE';
  fieldy := 'STUFF GOES THERE';
  fieldz := 'STUFF GOES EVERYWHERE'

end;

Record-like constructs in the ML family

Arrays

Array declarations

Slices

Conformant arrays

Dynamic arrays

Memory layout

Strings

Sets

Pointers and recursive types

Pointers and models

Pointers and value models

Note on page 385 relating to "stack smashing":

C allows conflation of pointer arithmetic with array access

Garbage collection

Garbage collection

Garbage collection

Garbage collection

Garbage collection

7.8 Lists

7.8 Lists

7.10 Equality and assignment

Equality and assignment

7.11 Wrapping up

7.11 Wrapping up

7.11 Wrapping up