Re: on the loading of preference files
Christophe Rhodes <[email protected]>
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
Gary King <[email protected]> writes: >> +(defgeneric load-preferences (system) >> + (:documentation "Called to load system preferences after >> <perform load-op system>. Typical uses are to set parameters that >> don't exist until after the system has been loaded.")) >> + >> +(defgeneric preference-file-for-system (system) >> + (:documentation "Returns the pathname of the preference file for >> this system. Called by 'load-preferences to determine what file to >> load.")) I think that both of these should have an operation argument additionally. It's not just after performing a load-op that a preferences file should be loaded -- consider a load-source operation, not to mention possible user-specified operations. Alternatively, if you believe that there's one and only one preference-file-loading operation, then it probably deserves to be an operation in and of itself. Cheers, Christophe