Next: Beyond the Actor Model
Up: Actor-Oriented Programming
Previous: The Actor Model
Contents
How SALSA Supports the Actor Model
SALSA programmers write behaviors which include encapsulated state
and message handlers for actor instances:
- New actors get created in SALSA by instantiating particular
behaviors (with the new ketword). Creating a actor returns
its reference.
- The message operator (<-) is used to send
messages to actors; messages contain a name that refers to the
message handler for the message and optionally a list of arguments.
- Actors, once created, process incoming messages, one at a time.
Wei-Jen Wang
2005-10-24