<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Feb 4, 2007, at 12:35 AM, Blake wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">But not descend from Array?</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>I would not as you run the risk of mixing concepts.  Arrays are 1D so new: expects an integer.  You want to make a new: that takes a point and have an entire interface written in terms of 2D.  It can get messy if you're trying to keep track of which method is 1D vs 2D oriented.  IMO, best to keep your interface minimal and specific, implementing it with an internal array.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In general, inheritance is overused as a composition mechanism.   It should be the last resort, not the first.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Todd Blanchard</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>