next up previous

9.4.4.4 Directly Modifying an Instance

Syntax

(defmessage-handler USER direct-modify primary
  (?slot-override-expressions))

This handler modifies the slots of an instance directly rather than using put- override messages to place the slot values. The slot-override expressions are passed as an EXTERNAL_ADDRESS data object to the direct-modify handler. This message is used by the functions modify-instance and active-modify-instance.

Example

The following around message-handler could be used to insure that all modify message slot-overrides are handled using put- messages.

(defmessage-handler USER direct-modify around
   (?overrides)
   (send ?self message-modify ?overrides))


next up previous