Hello

The default way to override an existing variable in scheme is:

#(define foo 2)

#(set! foo 3)

#(display foo) %--> output is 3


I want to override the foo with use of another variable storing the foo's varname:


#(define foo 2)

#(define bar 'foo) %variable storing the foo's varname

#(set! `,bar 3)  %I want here to override the foo variable with use of bar

#(display foo) %---> the expected by me output is 3


How can I do this?

Robert



Reply via email to