[comp.lang.forth] Object Oriented Interface

UNBCIC@BRFAPESP.BITNET (04/26/91)

        The interface will use vocabularies (now wordsets) to create the
classes. With the new method (nameless vocabularies) it's possible to
create a vocabulary and compile it to the word (the class). Inside the
vocabulary will stay the "internals" (normal Forth code only accessible
through the class), the methods and the object data. The Class Variables
will be created by normal Forth code (wich, obviously, can include this
interface), and the Object Data and Methods will be defined by specific
words.

        I'm planning to create three classes to provide static (ALLOT),
dynamic (ALLOC), and virtual (ALLOC with specific handling) allocation
for objects. As I have said before, Objects and Classes will be dynamic
(i.e., they can change inheritance and internal data during run-time).
No restrictions will be made on inheritance (besides that static objects
will not gain access to new classes added to their parents).

        The system will use, by default, late binding. I want to provide
some early binding, but looks like it'll not be easy.

                              (8-DCS)
Daniel C. Sobral
UNBCIC@BRFAPESP.BITNET