6 Dec 2004 01:29
Problem with retrieving lambda lists.
Szymon <r5z-u28s_g1d <at> o2.pl>
2004-12-06 00:29:05 GMT
2004-12-06 00:29:05 GMT
Hi.
I have not idea how to implement ARGLIST function in sbcl.
Please help.
(defun arglist (fn) ; from cvs: clocc/clocc/src/port/sys.lisp
"Return the signature of the function."
;;
;; .....
;;
#+sbcl
(let ((f (coerce fn 'function)))
(typecase f
(STANDARD-GENERIC-FUNCTION (sb-pcl:generic-function-lambda-list f))
(FUNCTION (sb-kernel:%simple-fun-arglist f)))))
(defvar *some-stubborn-functions*
(mapcar #'fdefinition
'(TYPE-ERROR-EXPECTED-TYPE TWO-WAY-STREAM-OUTPUT-STREAM
ECHO-STREAM-OUTPUT-STREAM SIMPLE-CONDITION-FORMAT-ARGUMENTS
TWO-WAY-STREAM-INPUT-STREAM HASH-TABLE-P
TYPE-ERROR-DATUM STREAM-ERROR-STREAM
FILE-ERROR-PATHNAME PACKAGE-ERROR-PACKAGE
BROADCAST-STREAM-STREAMS HASH-TABLE-REHASH-THRESHOLD
CONCATENATED-STREAM-STREAMS PATHNAMEP
UNBOUND-SLOT-INSTANCE ARITHMETIC-ERROR-OPERANDS
(Continue reading)
RSS Feed