common-lisp
a question about variable bind in common lisp
It is a question about variable bind in function define: If I define funcion \"total\" like this,x in \"total\" is bind to the local x in let.[详细]
2023-02-28 14:57 分类:问答Error on making CFFI wrapper for BWAPI library (C++) by SWIG
I\'m trying to make a CFFI wrapper for BWAPI (which was written on C++ ) from http://code.google.com/p/bwapi/ ,by modifying another BWAPI-bridge (which was written on C#) http://code.google.com/p/bwap[详细]
2023-02-28 04:38 分类:问答Has anyone got any code examples of ECL Lisp for Iphone development?
I found out about Lisp for the Iphone recently and wanted to fi开发者_运维问答nd some code examples.[详细]
2023-02-28 03:36 分类:问答read-line in common lisp
I want to read input from STDIN, and just read what it is: if input is a list, then what is read is a list. However, the read-line function seems always return a string![详细]
2023-02-27 07:26 分类:问答how to allocate memory blocks, in clisp
in clisp (eq (cons \'a \'b) (cons \'a \'b)) is false(NIL) because first(AB) and second(AB) allocates in different memory.[详细]
2023-02-27 00:56 分类:问答Recursively check for atoms in a list
I am attempting to write a small recursive program that tests a list and returns t if every element is an atom.The problem I am having is that when the function receives an empty list, it returns t in[详细]
2023-02-26 10:06 分类:问答Preferentially gluing lists on recursion--Single point of return
Warning:Ab开发者_StackOverflow中文版solute Lisp n00b.I\'m very well versed in Java, and moderately in C.Lisp... so far hasn\'t been my favorite.(But its better than prolog...)[详细]
2023-02-26 07:04 分类:问答Split string into individual characters
I am having two problems while working in Lisp and I can\'t find any tutorials or sites that explain this. How do you split up a string into its individual characters? And how would I be able to chang[详细]
2023-02-26 06:07 分类:问答Why is the @ sign needed in this macro definition?
In the following when macro: (defmacro when (condition &rest body) `(if ,condition (progn ,@body)))[详细]
2023-02-25 17:11 分类:问答can I distinguish between a string literal argument and a parameter which evaluates to a string?
I\'m creating a domain-specific language. One of the macro calls looks something like this: (my-macro foo (bar \"baz\" qux) yay)[详细]
2023-02-25 15:10 分类:问答