Do you know where can I get the source of a predicate in Common Lisp? (The content of the predicate, if you prefer.) For example, source code of setq, string= etc.
Thanks !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Common Lisp development environments typically provide a way to look up definitions in the file with the source code.
Alternatively,
FUNCTION-LAMBDA-EXPRESSIONmight be able to recover the source of a predicate and other functions, if the Lisp environment has been configured to save the definitions.You can also search in the lisp files of open source lisp implementations. For example, in Clozure CL
setqis defined in the compiler/nx1.lisp file of the distribution. A tip is to place a space in the front of the search word to bypass matches like(setq.