[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extensions to settor variables?



> That's one step, not two.  Unsetting in es is done by assigning the
> empty list, and that executes the settor function:

OK, makes sense, you can always   ~ $#f 0    to see if it's being unset.

> so the only thing es lacks, is (b).  I must admit executing a function
> every time a variable is referenced seems a bit overwhelming to me.
> This creature doesn't feep, it galumphes!

One could view it as "generalization" .... (:-)

> What are the uses for such things anyway?  (I mean the reference
> discipline).

It allows you to change the value that is returned in the reference.

I'll admit to not having seen any major convincing uses, yet.

The way it works is a bit kludgey, with special variables you access or set
from inside the function to control the returned value.

I won't be upset if it's not included, I'm just trying to generate some
thought about it.

Arnold