This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: question about comments in eval.c
- To: sen_ml at eccosys dot com
- Subject: Re: question about comments in eval.c
- From: Neil Jerram <neil at ossau dot uklinux dot net>
- Date: Mon, 7 Aug 2000 19:52:58 +0100
- CC: guile at sourceware dot cygnus dot com
- References: <20000807195511Y.1001@eccosys.com>
i think i understand what memoization of procedures and special forms
means, but i don't understand what memoization of variables is
supposed to mean.
can anyone shed some light on this? (perhaps a pointer to an online
reference?)
The picture I have in my head is that a variable reference in an
expression gets converted to a pair of numbers (NF . NV), where
- NF is the number of environment frames you have to climb up from the
lexical environment at that point in the expression
- NV is the index of the variable in that frame.
Together, these numbers get you to a location, which is where the
value for that variable is stored.
But, to be honest, I'm really _very_ unsure about this. Perhaps
someone else will confirm or correct.
Regards,
Neil