Changeset 500


Ignore:
Timestamp:
Feb 7, 2004, 5:00:38 PM (21 years ago)
Author:
Gary Byers
Message:

Add a doc string for *MODULE-PROVIDER-FUNCTIONS*; reference it in the
error message if REQUIRE fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-files.lisp

    r499 r500  
    11711171
    11721172(defparameter *loading-modules* () "Internal. Prevents circularity")
    1173 (defparameter *module-provider-functions* '(module-provide-search-path))
     1173(defparameter *module-provider-functions* '(module-provide-search-path)
     1174  "A list of functions called by REQUIRE to satisfy an unmet dependency.
     1175Each function receives a module name as a single argument; if the function knows how to load that module, it should do so, add the module's name as a string to *MODULES* (perhaps by calling PROVIDE) and return non-NIL."
     1176  )
    11741177
    11751178(defun module-provide-search-path (module)
     
    12001203          (unless (some (lambda (p) (funcall p module))
    12011204                        *module-provider-functions*)
    1202             (error "Don't know how to load ~A" module)))))
     1205            (error "Module ~A was not provided by any function on" module '*module-provider-functions*)))))
    12031206    (values module
    12041207            (set-difference *modules* original-modules))))
Note: See TracChangeset for help on using the changeset viewer.