![]() | Chapter 4: Kinds | ![]() ![]() |
4.10. Conditions of things |
We have already seen that the names for either/or properties can be used as adjectives, so that we can talk about "a dark room" (meaning: a room which has the dark property rather than the lighted property). The same goes for the named possibilities for a newly created kind of value:
Colour is a kind of value. The colours are red, blue and green. A building block is a kind of thing. A building block has a colour.
In the playroom are a red building block and a green building block.
Potentially, at least, "colour" is a widely applicable kind of value, and we already have two different things which have colour. But it often happens that we need adjectives to apply just to a single thing, and if so then a shorthand form is allowed:
The cask is either customs sealed, liable to tax or stolen goods.
Inform deals with this by creating a new kind of value, whose possibilities are the named options supplied, and then giving the named object a property whose value has to be one of the possibilities. Initially the cask will be "customs sealed", as that was the first value in the list. We could now write, for instance,
The description of the cask is "A well-caulked Spanish wine cask. [if liable to tax]It really is a shame to have to pay duty on it!"
We will often not need to know this, but the kind of value and the property are both automatically given the name of the object with the word "condition" tacked on: so in this case "cask condition". For instance, we could write:
The printed name of the cask is "wine cask ([cask condition])".
Previous | Contents | Next |