Chapter 3
Variables
D provides two basic types of variables for use in your tracing
programs: scalar variables and associative arrays. We briefly illustrated the use of these variables
in our examples in Chapter 1. This chapter explores the rules for D
variables in more detail and how variables can be associated with different scopes.
A special kind of array variable, called an aggregation, is discussed in Chapter 9, Aggregations.