GenClass: 7 Special Message Passing

Up: GEOS SDK TechDocs | Up | Down | Prev: 6 Vardata | Next: 8 Visual Refreshing

It is often useful to pass messages "generically" rather than having to specify the particular optr directly. For example, in many cases, retrieving and storing the optr of an object is cumbersome, and it would be much easier to say "deliver this message to my parent." GenClass provides many useful messages which handle cases such as these. These message passers are of three types:

In all cases, the message must be stored as a classed event . A classed event is a combination of a class and a message. The message itself may pass data. The classed event enables the object to specify which class it would like the message to be handled by. In Goc, a classed event is created by encapsulating the message and class using the @record keyword.


Up: GEOS SDK TechDocs | Up | Down | Prev: 6 Vardata | Next: 8 Visual Refreshing