From: Sylvain Joyeux Date: 2005-07-07T05:44:51+09:00 Subject: Re: Inheriting Array and slice() behaviour > Pragmatically, I'd suggest that you use the has-a relationship, as > [...] I'm not trying to talk about pragmatism (the program already works, thanks :D), but about concepts :p > Is there any reason that this would be bad? No, I was just investigating another way of doing it > Pedantically, it doesn't quite sound like Expression is-a Array. It > doesn't satisfy Array's general contract. (See > http://en.wikipedia.org/wiki/Liskov_substitution_principle .) Can you be more specific ? I think it would have if slice returned an Array) Sylvain -- Sylvain Joyeux