From: Richard Lionheart Date: 2004-05-03T02:55:18+09:00 Subject: Re: Great answers! A few more questions Hi Ara, "Ara.T.Howard" wrote in message news:Pine.LNX.4.44.0404250819470.15467-100000@fattire.ngdc.noaa.gov... > On Sat, 24 Apr 2004, Richard Lionheart wrote: > > > The Thomas/Hunt book says 'update' is a method in Hash and CGI::Session, but > > not in Array. > > sorry - i meant Array#replace I successfully used your previous suggestion after fixing it with 'replace' as you suggest. > ~ > cat a.rb Thanks for all these examples. I'm going to go through them one-by-one in a little while. Before I received them, I'd pretty much internalized all the suggestions I've received in this thread and put together a number of different usages of Array, documenting each one to point out the nuances that seem important to me. Your recent examples will give me a bunch more! Which leads to a question about the first one I started with, shown below. In my comments, I tried to indicate how the derived array got initialized, claiming it "uses the Array#[](a) method with an Array argument ." That turns out not to be correct, because MyArrayType1#[](a) did not get invoked. So what method in Array does get invoked? Or maybe it's a method in Array's parent, Class. Except for that, do my other comments correct? Thanks again for your superb Ruby guidance. I'll soon be able to figure out these kinds of questions for myself, but I haven't gotten there yet. Regards, Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.665 / Virus Database: 428 - Release Date: 4/30/2004