From: Kent Dahl Date: 2001-10-27T17:56:23+09:00 Subject: [ruby-talk:23611] Re: O'Reilly site has "An Introduction to Ruby"article Robert Feldt wrote: > "In Python, methods are objects, which they aren't in Ruby" seems wrong > given class Method etc, and That one jumped out on me too, but do note that obj.method(:methodname) will return different objects (diff id) for the same method, whereas in Python, any functionname w/o a parenthis will refer to one and the same object. So it might be correct to say that methods aren't first-class objects in Ruby per se. > I find "Python supports multiple inheritance, which Ruby does not." a bit > simplistic since mix-in with modules is not mentioned. I agree. Mix-ins do, in my view, enable multiple private inheritance (or implementation inheritance), which only leaves the interface inheritance point of "vanilla" multiple inheritance hanging. -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/