From: "Peña, Botp" Date: 2005-04-16T09:50:50+09:00 Subject: Re: Knight's Travails (#27) James Edward Gray II [mailto:james@grayproductions.net] wrote: #On Apr 15, 2005, at 1:44 AM, Pe�a, Botp wrote: # #> Matthew D Moss [mailto:matthew.moss@gmail.com] wrote: #> #> #Well, I used 'a'[0] cause I'm still a Ruby-newbie. I was ##unaware of #> the ?a construct. #> #> imho, you thought it right. #> #> irb(main):001:0> x='a' #> => "a" #> irb(main):003:0> x[0] #> => 97 #> irb(main):004:0> ?x #> => 120 #> irb(main):005:0> ?a #> => 97 # #I'm not completely sure what you are trying to show here. ?x #means the #character code for the letter x. This has nothing to do with the #variable x. (That's not an issue because you're naming your variables #better than that, right? :D) in prgg, one generally does not know what is contained in x (otherwise, one would not have to ask for it); so, how does one know what char (code) is in x? i only showed that ?x will not work, but x[0] will # #> btw, is there a Char class? # #No, there's not. See Integer#chr. i was looking for the other way around, like Chr#integer. thanks james and kind regards -botp # #James Edward Gray II # #