Opened 7 years ago

Last modified 3 years ago

#1088 assigned defect

lambda docstrings can't be read

Reported by: ekd123 Owned by: gb
Priority: normal Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: docstring Cc:

Description

According to CLHS, the docstrings of lambdas are supposed to be successfully read. Unfortunately, Clozure CL doesn't. Is it on plan? Or just a feature?

Expected:

(documentation (lambda () "a function which always returns NIL" nil) 'function)
;; => "a function which always returns NIL"

Actual:

(documentation (lambda () "a function which always returns NIL" nil) 'function)
;; => NIL

Additional Information:

((lambda () "a strange behavior"))
;; => "a strange behavior"

Maybe this behavior should only be taken if there's only one form in it...

Change History (2)

comment:1 Changed 7 years ago by gb

  • Owner set to gb
  • Status changed from new to assigned

In the first example, I agree that the string should be treated as doc string and can maybe believe that someone would care whether it is or not.

In the second example, the string is the function's return value and not a doc string.

comment:2 Changed 3 years ago by rme

  • Milestone Clozure CL 1.9 deleted

Milestone Clozure CL 1.9 deleted

Note: See TracTickets for help on using tickets.