Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
An event has a name and an associated value. The name is simply an identifier, much like a variable's name. The value can be any Glish value, of any type: numeric, string, record, reference, agent, or function7.1, along with all of its attributes. A foo event with value [3, 2, 5], means an event whose name is ``foo'' and whose value is the particular three-element integer vector [3, 2, 5].
An event can be thought of as a message, with the name identifying the message's type and the value conveying data specific to a particular message. For example, in addition to the foo event, discussed above, you might have another foo event, this time with a value of "howdy howdy!". Both events can be thought of as ``foo"-type events, though their values are different.
Glish provides ways to generate events and to specify what should happen when an event is received. How events are sent to and received from agent's is discussed in the next section.