I figured out that I can explicitly copy the current environment with inlet, so my function is now
(define (make-info name location description) (inlet (curlet))) This works for my purposes, but is it idiomatically correct? Thanks, Woody On Fri, 2021-09-24 at 09:41 -0400, Woodrow Douglass wrote: > I'm trying to write a function that makes a simple dictionary of > informaton > > (define (make-info name location description) (curlet)) > > but it seems that let gets reused or something -- the values seem to > change when the function gets called more then once > > i could just use associative lists by doing > > (define (make-info name location description) (let->list (curlet))) > > but i really like how lets work (applicable, etc...) > What assumption have i gotten wrong? why doesn't a new let get > created > per function call? > > Thanks, > Woody Douglass _______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
