File-Local Variables

Jan 1, 2011·
Didier Verna
Didier Verna
· 1 min read
Type
Publication
In Common Document Repository
Event
Date
Jan 1, 2011 12:00 AM
Abstract
The Common Lisp standard defines two special variables, *package* and *readtable*, that are treated in a special way: the functions load and compile-file establish a new dynamic binding for each of them, so that any modification to their value at load or compile time becomes local to the file being processed. The motivation for the present document is the claim that this behavior could be useful for other, user-defined variables, although there is currently no way to do so in standard Common Lisp.