Creating methods on the fly?

Monty (monty@tbyte.com)
Thu, 14 Jul 1994 16:28:03 GMT

I have an object that represents a room in a game. I want each room to
have a rule associated with it as a method, however, I don't want to
create a new class for each room. Through experimentation I have found
that I can assign functions as attributes of instances. How can I turn
that function into a method so I can assign methods as attributes of
instances?

Monty