From: David Alan Black Date: 2001-01-09T22:20:41+09:00 Subject: [ruby-talk:8924] Re: No :<, :>, etc. methods for Array Hello - On Tue, 9 Jan 2001, [iso-8859-1] Aleksi Niemel� wrote: > Hello, > > At least David Alan Black and Ben Tilly have been conversating, the latter's > last comment being: > > > Say modules called ArrayInterface, HashInterface and > > StringInterface. > > > > If you want to use it you would have to write []= and so > > on, but the so-on to get the whole interface would be much > > smaller than it would be now. > > Ok. I've been following this thread with great interest, but I've been > somewhat lost. That's mostly due to my quite limited knowledge of Perl Tying > concept. I always thought it's quite simple, but it's referred everywhere as > pure magic. Now I guess I got on the map again. I think the whole Perl tying part of this is not all that relevant. In Ruby, right now, it's pretty easy to do everything that a Perl tied class does. Standard interface classes could clean things up a little in that area (mainly by not having unnecessary methods defined), but the basic ability to do the equivalent of Perl tying is already there. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav