Re: assign to and read from global variable

2020-03-20 Thread tomas
On Fri, Mar 20, 2020 at 06:20:38PM +0100, Malte Frank Gerdes wrote: > Hi, > > i'm trying to collect every definition of variables with it's according > value in a global variable. How i think it's supposed to work is: > > (define *global* '()) > > (... > (defvar . ,(lambda (_ . args) >

assign to and read from global variable

2020-03-20 Thread Malte Frank Gerdes
Hi, i'm trying to collect every definition of variables with it's according value in a global variable. How i think it's supposed to work is: (define *global* '()) (... (defvar . ,(lambda (_ . args) (set! *global* (cons *global* args ...) This results in the following ou