Yes, I did not think of that (rather new) feature. Thanks for reminding me. Jos.
> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Carl Eastlund > Sent: 24 July 2010 19:20 > To: Jos Koot > Cc: Pedro Del Gallego; [email protected] > Subject: Re: [racket] How to create 'Internal Definitions' in > a schemeinterpreter. > > On Sat, Jul 24, 2010 at 1:11 PM, Jos Koot > <[email protected]> wrote: > > I did not study your interpreter thoroughly, but I see you > use a hash > > for an environment. This is bound to go wrong, for the same > variable > > may have different bindings in nested scopes. You'll need a > stack, or > > an association-list or something like that, in which > variables may be > > shaddowed. > > Or replace the mutable hash table with an immutable hash > table. They support functional update, so you can extend > them and pass them around, but you get efficient hash table > lookup for free. > > --Carl _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

