ECL does not support docstrings for functions created with flet, labels or lambda. Why?

Alexander Artemenko svetlyak.40wt at gmail.com
Mon Jan 2 06:09:20 UTC 2017


Hi!

I found that:

CL-USER> (let ((foo (lambda () "With docstring" 100500)))
>            (princ (funcall foo))
>            (terpri)
>            (princ (documentation foo t)))
> 100500
> NIL
> NIL


in ECL, but:

CL-USER> (let ((foo (lambda () "With docstring" 100500)))
>            (princ (funcall foo))
>            (terpri)
>            (princ (documentation foo t)))
> 100500
> With docstring
> "With docstring"


Why?

BTW, similar behaviour have ABCL, Allegro and CCL. But SBCL and CLISP work
as expected.

-- 
Alexander Artemenko (a.k.a. Svetlyak 40wt)
Blog: http://dev.svetlyak.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20170102/e051e2a7/attachment.html>


More information about the ecl-devel mailing list