next up previous contents index
Next: Instance Variables Up: The Dreams System Previous: The Dreams System   Contents   Index


An Example

Appendix B (p [*]) gives the advertised interface to the Forth words defined as part of the dreams package. Appendix C (p [*]) gives a sample interactive session showing some exploratory programming using the dreams package. The reader should study the code and the results obtained, as it clearly demonstrates the different values that the same variables represent in the understanding of different dreams. It also shows how operator overloading of colon definitions is requested and the effects that this has.

First, three variables, X, Y, and Z, are defined and initialized. Then a word, ?, to print a variable's value is defined. The word DOT is defined to print a value in a different format than . provides.



Subsections

Robert J. Brown
1999-09-26