Re: scheme/dsssl question

Subject: Re: scheme/dsssl question
From: Henry Thompson <ht@xxxxxxxxxxxxxxx>
Date: 02 Jan 1998 12:10:48 +0000
[Chris tries again to get strings/symbols evaluated]
> (define (bar thunk)
>   (if (string? thunk)
>     ((string->symbol thunk))
>     (thunk)))

Nope, same problem as before with the first clause -- string->symbol
will return a symbol, but what lexical environment should THAT symbol
be evaluated in?

If it's really strings/symbols -> values that you want, Dave's
solution using a-lists is the only portable way.

ht
-- 
Henry S. Thompson, Human Communication Research Centre, University of Edinburgh
      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
               Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxxxxx  
                      URL: http://www.cogsci.ed.ac.uk/~ht/


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Re: scheme/dsssl question
    • Henry Thompson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id HAA13194Fri, 2 Jan 1998 07:15:06 -0500 (EST) <=