Home Segments Index Top Previous Next

179: Sidetrip

A Smalltalk variable refers to a chunk of memory that holds the address for data, rather than the data themselves. In some implementations, the chunk of memory that holds the address also holds a few data-type–identifying bits; in other implementations, type-identifying bits are held in the same chunk of memory as the data.

Either way, data are typed, but variables are not. Accordingly, there are no variable declarations of the sort found in languages such as C.