From: Tobias Reif Date: 2002-07-06T04:45:18+09:00 Subject: Re: is there a better string.each? Hal E. Fulton wrote: > Secondly, POLS should be a meta-linguistic issue IMO -- > not "how does this work in my favorite language?" but > "how *should* this work in an ideal universe?" yes > And I think Strings are not really Arrays. There are > some isomorphisms there, since they are both "ordered > collections of entities." > > But a string is a highly specialized thing. For one > thing, each item has to be a character. No other > Ruby array is limited in the kind of data it can > contain; ... so, as you say, it's a specialized form of an array; and could very polsy be modeled as a subclass of Array. Tobi -- http://www.pinkjuice.com/