[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flavor suggestion



What do you think about the following addition to flavors? 

Right now, when an instance doesn't understand a message it
signals an error. I propose that the instance be given a chance
to say what it wants done with unrecognized messages, by
having the UNCLAIMED-MESSAGE function check to see if the
instance handles the message :UNCLAIMED-MESSAGE, and if so, 
send it :UNCLAIMED-MESSAGE, along with the original unrecognized
message. 

This would allow instances to "delegate" messages they didn't 
understand to other objects, have object-specific "error handlers", 
etc.