Artifact cca6c59ce9f31adf82f978f00de68f920f5efb116a65b2ad01c2e043de7da371:
- File
psl-1983/3-1/util/evalhook.lsp
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 760) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/util/evalhook.lsp
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 760) [annotate] [blame] [check-ins using]
;;; ;;; EVALHOOK.LSP - Support for special evaluation ;;; ;;; Author: Eric Benson ;;; Symbolic Computation Group ;;; Computer Science Dept. ;;; University of Utah ;;; Date: 30 March 1982 ;;; Copyright (c) 1982 University of Utah ;;; (defvar evalhook () "Variable to be funcalled if not () when Eval is called") (fset 'old-eval (fsymeval 'eval)) ; Redefine Eval (defun eval (form) (if evalhook (let ((outer-evalhook evalhook)) ; Bind evalhook to (), then funcall it (let ((evalhook ())) (funcall outer-evalhook form))) (old-eval form))) ;;;; EVALHOOKFN - outer evaluation uses old-eval, inner evaluations use hook (defun evalhookfn (form hook) (let ((evalhook hook)) (old-eval form)))