This section describes the objects.fs package. This material also has been published in M. Anton Ertl, Yet Another Forth Objects Package, Forth Dimensions 19(2), pages 37–43.
This section assumes that you have read Structures.
The techniques on which this model is based have been used to implement the parser generator, Gray, and have also been used in Gforth for implementing the various flavours of word lists (hashed or not, case-sensitive or not, special-purpose word lists for locals etc.).
|• Properties of the Objects model:|
|• Basic Objects Usage:|
|• The Objects base class:|
|• Creating objects:|
|• Object-Oriented Programming Style:|
|• Class Binding:|
|• Method conveniences:|
|• Classes and Scoping:|
|• Dividing classes:|
|• Object Interfaces:|
|• Objects Implementation:|
|• Objects Glossary:|
Marcel Hendrix provided helpful comments on this section.