dep.lisp (%dep-value): Document why this is a separate function.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 20:37:07 +0000 (21:37 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:52:21 +0000 (22:52 +0100)
I almost committed a change which folded this into `dep-value' before
noticing that the latter is marked `inline'.

dep.lisp

index 3a1520f..ecd1628 100644 (file)
--- a/dep.lisp
+++ b/dep.lisp
               (progn (setf (dep-flags dep) flags) nil))))))
 
 (defun %dep-value (dep)
-  "Do the difficult work of retrieving the current value of a DEP."
+  "Do the difficult work of retrieving the current value of a DEP.
+
+   This is the unhappy path of `dep-value'."
   (force-dep-value dep)
   (when *evaluating-dep*
     (pushnew (dep-weak-pointer *evaluating-dep*) (dep-dependents dep))