[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Excuse me. I was so excited the other day to find that BIND binds locations
and not just variables that I was over-using it. What I had in mind for
load should have been expressed as (embedded in a file)
(SET *SAVED-ENV* (LOAD-ENV))
(SET (LOAD-ENV) *OTHER-ENV*)
(SET (LOAD-ENV) *SAVED-ENV*)
The change to load is simple, and makes a file look more like a repl.
Instead of passing its ENV argument down to its subfunctions as a parameter,
let LOAD bind (LOAD-ENV) to the value of that argument, and have the
subfunctions get it from the switch when they need it.