Skip to content

Commit

Permalink
Function printer adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontone committed Sep 1, 2022
1 parent 81c5891 commit 14ae1b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/print.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,10 @@

;; function object printer
(defun function-object-printer (form stream)
(let ((res))
(setq res (concat "#<FUNCTION "
(or (jscl::oget form "fname")
"")
" "
(let ((res)
(fname (jscl::oget form "fname")))
(setq res (concat (if fname "#<FUNCTION " "#<LAMBDA ")
(or fname "")
(or (and (jscl::function-lambda-list form)
(princ-to-string (jscl::function-lambda-list form))) "()")
">"))
Expand Down

0 comments on commit 14ae1b6

Please sign in to comment.