On Apr 22, 2007, at 10:00 PM, Michael W. Ryder wrote: > Was there a reason the string class was implemented with str[i] > returning the code of position i in str? The reason I ask this is > that in other languages str[i] returns the string starting at > position i. For example C uses t = strcpy(str[i]) and Business > Basic uses S$=T$(I) to copy a string from position i. > I can see no way to do this in Ruby other than using something > like: t = str[i,9999]. It seemed strange that copying ranges of > strings uses the same format as C (t =strncpy(str[i],n)) but not > when copying the remainder. Try str[i,-1], or one of the myriad other ways to access ranges of a string as defined in String#[]