From: Paul Brannan Date: 2001-12-07T00:54:08+09:00 Subject: [ruby-talk:27703] Re: Emulating multimethods On Fri, Dec 07, 2001 at 12:33:09AM +0900, Christopher S. Kush wrote: > I'm familiar with State and Visitor patterns, but I really want > multi-methods. OIC, you want to respond to combinations of inputs (from your original message, it sounded like you wanted to respond to inputs depending on the state of the emulator). Have you seen [ruby-talk:26930] from last week? It's an interesting (if perhaps O(n*m)) way of handling the problem. If your inputs are simple enough, though, you may be able to get away with a hash lookup instead (which could be much faster). Paul