[plt-scheme] applying set! on the contents of a variable

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Sat Sep 29 14:51:16 EDT 2007

Of course, that only works for global variables, and only if you
require defmacro.ss to get define-macro.

--Carl

On 9/29/07, Majorinc, Kazimir <kazimir at chem.pmf.hr> wrote:
> Here is one possibility
>
>  > (define-macro (set!! p e)(list 'set! (eval p) e))
>  > (define y 3)
>  > (define x (quote y))
>  > (set!! x 6)
>  > y
> 6
>


Posted on the users mailing list.