(print "Warning: discarded message " message " to unknown actor " address)
(let ((value (apply behaviour (cons address message))))
(case value
- ((done) (hash-table-delete! actor-table address))
((sleep) 'do-nothing)
+ ((done) (hash-table-delete! actor-table address))
(else
(if trace-enabled
(print "Updating behaviour of " address))
(define (send-and-run actor . message)
(apply send-message (cons actor message))
(run))
-