This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: question about comments in eval.c


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]