From: Tom Sawyer Date: 2002-07-08T04:47:33+09:00 Subject: Re: is there a better string.each? > Precisely; no more than I would say a String "is a"[n] Array. A > string is a string. Percisely? ha! you guys are killing me. :-) do me a favor and just think about this for awhile. take a look at c/c++, think about how strings are handled by any programming language, under the hood. i feel you two are talking a bit off the cuff and therefore are getting a bit strung up ;-) > If, in ruby, we want to implement it as an array, fair enough. by your reasoning: if a string is a string, how can it be implemented as an array? but at least you arn't adverse to the notion. that at least helps. ~transami On Sun, 2002-07-07 at 13:26, Michael Campbell wrote: > > > Someone else mentioned earlier what's been bugging me about this; > > > although you may like to think of strings as arrays, the array > > bit is > > > just an implementation choice. The thing is not necessarily its > > > implementation. > > > > Yes, quite right. A linked list is also an > > ordered collection of items. Yet we wouldn't > > say that a string "is a" linked list. > > > > ===== > -- > Use your computer to help find a cure for cancer: http://members.ud.com/projects/cancer/ > > Yahoo IM: michael_s_campbell > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > -- ~transami "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin