next up previous contents index
Next: Overloading Up: An Example Previous: Instance Variables   Contents   Index


Classes

Now FUE, a progenator of dreams, is defined by the class defining word TRANCE. FUE defines a class of dreams in which the definition of . has local meaning. Since . is the Forth word to print a number, changing the definition of . will change the way numbers are printed. FUE is used to create two dreams, FOO and BAR. The thought hmm is pondered in each of these dreams to demonstrate that they both behave exactly the same as the understanding in which they were created.



Robert J. Brown
1999-09-26