scheme question:string->symbol, then accessing symbols value

Subject: scheme question:string->symbol, then accessing symbols value
From: "John Sidlo" <jsidlo@xxxxxxxxxxxxxxxxxx>
Date: Mon, 9 Nov 1998 11:04:41 -0500
I don't know whether you can do this:  I have symbols created by defines

- (define %somesymbol% 17)

and would like to reference these symbols by taking the value of an
attribute, for example <tag role=%somesymbol%>, convert the string to a
symbol, and then reference the value of the symbol.  So far the only way
I've been able to do this is to scrap the (define...) and use an assoc list
instead

(define %listofsyms% '((%somesymbol% 17) (%othersymbol% 2)...)

John Sidlo
ModernAgeBooks
jsidlo@xxxxxxxxxxxxxxxxxx


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


Current Thread