Core C++

4. Storage and commands🔗

One typing rule and one evaluation rule per construction of Cmd. The typing rules live in Typing.cmd and the evaluation rules in Eval.cmd.

Scope is the restoration of \rho at block exit, and lifetime is the removal of the local locations from \sigma. The chapter also holds the local reference, a second name for an existing location, and the evaluation order of the expressions with effects.

  1. 4.1. Declaration
  2. 4.2. Local reference
  3. 4.3. Assignment
  4. 4.4. Sequence and block
  5. 4.5. Conditional
  6. 4.6. Loops
  7. 4.7. Evaluation order
  8. 4.8. Expression statement