From: Tobias Reif Date: 2002-07-09T17:03:54+09:00 Subject: Re: is there a better string.each? Sean Russell wrote: > As I've said before, this is a nice solution, Hal. However, I would expect > that native support for this would be faster, and when one is itterating > over characters, speed can quickly become an issue. I was hoping for > something faster than split(''), which is also not very memory efficient, > creating an arbitrary Array object in the process. ... and def each_char self.each_byte {|b| yield b.chr } does not work with multibyte chars, noo? Tobi -- http://www.pinkjuice.com/