[gambit-list] Quasiquote syntax question.

Marc Feeley feeley at iro.umontreal.ca
Fri Feb 1 23:43:29 EST 2008


On 1-Feb-08, at 11:25 PM, Blake Winton wrote:

> And finally, Marc Feeley wrote:
>> Beware, fiddling with Gambit's internal routines will void the
>> warranty...
>
> Heh.  I think I've already done that by porting it to the iPhone in  
> the
> first place.  :)

Naw, that only voids the iPhone's warranty.

>>> (begin
>>    (##readtable-char-class-set!
>>      (current-readtable)
>>      #\$  ;; the character to dispatch on
>>      #t   ;; this character is a delimiter
>>      (lambda (re c) (##read-quotation re #\`)))  ;; handler
>>    #f)
>>> $(1 ,(+ 2 3) 4)
>> (1 5 4)
>
> I just tried to type this in on the device, but it seems to have a `  
> in
> the middle of it.  :P  On the plus side, I ssh-ed in, and saved that  
> as
> .gambcini and then, on the device,

Sorry about that... just replace #\` by #\u0060 .

Marc



More information about the Gambit-list mailing list