From: "F. Senault" Date: 2009-01-17T20:13:49+09:00 Subject: Re: Son of 10 things! (1.8 to 1.9 transition) Le 17 janvier 2009 � 06:35, RK Sentinel a �crit : > case ch > > when ?\C-a: > do this > when ?\C-b: > do that > end > > > Now do I hardcode the ascii values ? Or do a convert back to Fixnum > (ord(), iirc). ?\C-a.ord(). To can also convert ch (a few keystrokes less) : case ch.chr when ?\C-a ... On the other hand, the use of ':' with when is also deprecated, IIRC. Fred -- People like us Know how to survive There's no point in living If you can't feel the life We know when to kiss And we know when to kill If we can't have it all Then nobody will (Garbage, The World Is Not Enough)