[racket] Keyboard input in DrRacket
On Fri, Mar 18, 2011 at 13:27, Casey Klein
<clklein at eecs.northwestern.edu> wrote:
> On Fri, Mar 18, 2011 at 7:11 AM, Robby Findler
> <robby at eecs.northwestern.edu> wrote:
>> On Fri, Mar 18, 2011 at 6:46 AM, Pierpaolo Bernardi <olopierpa at gmail.com> wrote:
>>> Could \tilde be added to the list of keyboard macros recognized by M-\ ?
>>
>> It is called \sim.
>>
>
> But \sim + M-\ does not produce the same character that ~ produces on
> my keyboard.
>
>> (char->integer #\~)
> 126
>> (char->integer #\\sim)
> 8764
Sigh. Right.
It does not work for format strings, which is the case which prompted
my request.
> (format "∼a" 234)
. . format: format string requires 0 arguments, given 1; arguments
were: "∼a" 234