Chapter 14: Units
14.7. More on specifications

The essential requirement is that the specification must be one that clearly specifies no other kind. So "10 specifies a weight" will not be allowed, because 10 specifies a number already: but "10kg specifies a weight" is allowed because the "kg" suffix safely distinguishes it.

The specification can run for more than one word: we could instead have had written either of these -

10kg net specifies a weight.
10 kg specifies a weight.

In fact, we are allowed to say all three:

A weight is a kind of value. 10kg specifies a weight. 10kg net specifies a weight. 10 kg specifies a weight.

They will then all be allowed as alternatives. The first one given will be the one Inform considers the "normal" notation, so that will be the one used when weights are printed back in text.


PreviousContentsNext