Files
lisplings/exercises/18_dynamic

18_dynamic

Closures and special variables: two ways a function reaches out.

A closure captures the variables around it. A DEFPARAMETER variable is dynamic: LET rebinding it changes what every called function sees, and restores the old value afterwards. DEFVAR makes the same kind of variable but keeps quiet on reload - it never overwrites a value that is already there.