From: MikkelFJ Date: 2001-11-30T07:15:28+09:00 Subject: [ruby-talk:26977] Re: thoughts on virtual base classes, interfaces "Phil Tomson" wrote in message news:%byN7.676304$Lg.26112595@sjcpnn01.usenetserver.com... > > I want to pass around objects of a type which respond to a method called > 'run'. Optionally, they might respond to a few other methods, let's call This was crossposted while I posted the article on first class functions in Ruby. The above problem is exactly what would elegantly be handled by first class functions. You'd just pass the run function directly instead of having to create an object that respond to some named function like "run". If more functions that run were desired, it might be better to create a class, or a list of functions could be passed in a hashtable. I think this shows the OOP is great, but there are other concepts that are also worthwile. MikkelFJ