Oyts Winter '07 |
Notation Reference
|
$include(
zweibieren.txt) |
$include(
menu.txt) |
OytSpaces are defined in
terms
of
A symbol summary follows. |
ObjectsAn object is a thing, an entity, a being, an item, a doohickey, ... As with any fundamental concept, there is no way to be precise. For objects, we can give examples: persons, hills, computer files, or even words. An object is delimited, that is, one can distinguish the object from all other objects. Some questions can arise. Is a representation the same as the object? Is a name the same as the person? Is a picture the person? Does the concept of a particular person extend beyond his or her death? Which form of a computer file is the file object itself: a listing on paper? the bits on a disk? or bits in memory? One may also question where one object ends and another begins. What divides a hill from its valleys? To avoid distracting descent into didactic sophistry, we must agree that an object is what we say it is and promise not to look too closely at the representation or the edges.ClassesOne way to comprehend objects is to describe a class to which one or more objects may belong. A class description distinguishes its objects from those in other classes and it gives a set of operations applicable to its objects. Classes are named with capitalized words: Person, Hill, File, Word, Integer. Operations may be synthetic--producing new objects, selective--finding existing objects, analytic--providing information about an object, or nullary--providing no value, but possibly affecting the internals of one or more objects. More about describing operations appears below.Variables are typically written as a single italic lowercase letter; sometimes words are used instead. Each variable refers to an object. It may be modified to refer to another object, but both must be in the same class. Often the first letter of the class is used for a variable referring to objects of that class: i for an Integer. In other cases a variable's class is specified with the is-an-element-of operator, ∈. Example: o, p ∈ Oyt says that o and p will refer to Oyt objects. ReferencesA reference to an object is a value that can be followed to get to the object itself. It is like a person's address or the disk location of a computer file. A reference can be thought of as a dotted line leading to the object. References are usually the values of variables. Thus the value of the variable is not a thing, but a dotted line leading to the thing. (Other terms for reference are link, pointer, name, and address.) A reference that does not lead to an object is written as a fat dash, .SetsA set is, in non-technical terms, a bunch of things. More usually, the things are called the elements of the set. A set value is constructed by writing curly braces around a list of the elements: {a, b, c} constructs a set with three elements, the letters a, b, and c. When the elements are variables, the set is composed of the items that those variables represent. Thus if a equals 5 and b is a house then {a, b} is a set consisting of two elements, the value 5 and a house. (Sets are not required to make sense.)The elements of a set are in no particular order. The set {a, b, c} is the same as the set {a, c, b}. If the equality is defined for the elements, a set will have only one copy of any particular element. Thus {a, a, b} produces the same set as {a, b} or {b, a}. A set with no elements, called the empty set, is written as {}. The union operation combines two sets to make another. It is written as a stylized U: {a, c, b} ∪ {d} produces a set equivalent to {c, a, d, b}. To get the elements out of a set for computation, we can write: dissect s into {p, q} This notation is non-standard and says that two elements from set s are selected and assigned to variables p and q. To reinforce the notion that set elements are not ordered, the two elements are chosen at random, but are not both the same element. |
Symbol
Summary These symbols appear in the notation:
|