--001636c5a91f470263049409893a
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Oct 31, 2010 at 5:49 PM, James Edward Gray II <james / graysoftinc.com
> wrote:

> It is a problem with inheritance and another reason why inheritance is
> almost never what we want.
>

That's a pretty extreme position to take. Inheritance is an indispensable
tool. That said, I will agree that "is a" relationships come up far less
frequently than 'has a" relationships.

I would say that it would make far more sense to create a Vector class which
"has a"(n) array, and make the Vector an Enumerable. Of course, what makes
even more sense is to use the Vector class provided by "require 'matrix'"

-- 
Tony Arcieri
Medioh! A Kudelski Brand

--001636c5a91f470263049409893a--