From: Marko Schulz Date: 2002-07-06T01:10:36+09:00 Subject: Re: is there a better string.each? On Fri, Jul 05, 2002 at 02:29:44PM +0900, Tom Sawyer wrote: > > if it smells like a fish, and looks like a fish, and tastes like a > fish.... > > they fact of the matter is: a string is an ordered set of characters and > an an array is an ordered set of objects. thus the array is the general > data structure. a string is a subset of array in that it is the same > type of data structure but limited to characters (which i think is an > object type that is lacking in ruby), yet a string is also a superset of > array in that it has many additional methods. > > in effect i could design a string class that inherits array: > > class String < Array > > and i think that's how it a ought to be done. This works fine for German and English Strings. Does this uphold for other languages too? -- marko schulz