From: Alexander Kellett Date: 2004-08-11T03:55:57+09:00 Subject: Re: string.each_char On Wed, Aug 11, 2004 at 03:21:15AM +0900, Martin DeMello wrote: > I really think String#each_char ought to be added to the core - it's one > of the most basic String operations, and in practice a lot more useful a > default case than each_byte. Sure, I can simulate it in a lot of > different ways, but I really do think it ought to be there by default. what are you attempting to archieve with it? "string".each_byte { |byte| puts byte.chr if byte == ?s } => s when i first started i always thought the same but i love the ? construct these days. there is no basic char type. only bytes. and single letter strings. mvg, Alex