From: "Mauricio Fernández" Date: 2003-12-16T01:47:00+09:00 Subject: Re: Subclassing Array On Tue, Dec 16, 2003 at 12:07:08AM +0900, Hans Fugal wrote: > I'm hoping that most of the changing methods of Array are actually > implemented in terms of a couple of fundamental methods, e.g. insert and > delete. So I would do: That's unfortunately not the case (for performance reasons), but you could take a look at matju's Metaruby which IIRC does exactly that. OTOH, even wrapping all those methods need not be tiresome if you use some meta-programming or AspectR for instance. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Software is like sex; it's better when it's free. -- Linus Torvalds