Skip to content

Commit 14ae1b6

Browse files
committed
Function printer adjustment
1 parent 81c5891 commit 14ae1b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/print.lisp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@
333333

334334
;; function object printer
335335
(defun function-object-printer (form stream)
336-
(let ((res))
337-
(setq res (concat "#<FUNCTION "
338-
(or (jscl::oget form "fname")
339-
"")
340-
" "
336+
(let ((res)
337+
(fname (jscl::oget form "fname")))
338+
(setq res (concat (if fname "#<FUNCTION " "#<LAMBDA ")
339+
(or fname "")
341340
(or (and (jscl::function-lambda-list form)
342341
(princ-to-string (jscl::function-lambda-list form))) "()")
343342
">"))

0 commit comments

Comments
 (0)