public class God
extends java.lang.Object
Gods can be arranged as nodes in a double linked list, that is to say, they can hold references to an ordered pair of other Gods, called the 'next' God and 'previous' God.
Gods were first implemented by Richard Dawkins in the original Pascal source code for Blind Watchmaker. His definition, in Pascal, is this (GodPtr and GodHandle, which are "pointer types", necessary in Pascal to handle varying numbers of objects at runtime, a number unknown until the program actually runs.)
GodPtr = ^God; GodHandle = ^GodPtr; God = RECORD Adam: FullHandle; PreviousGod, NextGod: GodHandle; END;
Modifier and Type | Field and Description |
---|---|
Morph |
adam
The God's "Adam", the single morph to which it points.
|
God |
nextGod
The next God to this one.
|
God |
prevGod
The previous God to this one.
|
Constructor and Description |
---|
God() |
Modifier and Type | Method and Description |
---|---|
void |
add(God nextGod) |