common-lisp
Tracing a closure
Is it possible to trace a closure in CL? For ex., can I trace foo-3 below? (defun foo (n) (lambda (i) (incf n i)))[详细]
2023-03-24 06:28 分类:问答Why the function/macro dichotomy?
Why is the function/macro dichotomy present in Common Lisp? What are the logical problems in allowing the same name representing both a macro (taking precedence when found in function position in com[详细]
2023-03-24 04:18 分类:问答Treating the values from a list of slots and strings
I want to do a macro in common lisp which is supposed to take in one of its arguments a list made of slots and strings. Here is the prototype :[详细]
2023-03-23 10:58 分类:问答Using asdf can I load a system providing only previously made FASLs
I have a development machine and a production machine which are identical (Co开发者_JAVA百科py of a vm image).[详细]
2023-03-22 08:55 分类:问答A variable becomes undefined after referencing it in a defun
Hel开发者_如何学JAVAlo good people of stackoverflow, I am having a weird problem while following Adam Peterson\'s Lisp for the Web tutorial. The problem in question is probably a problem with Clozure[详细]
2023-03-21 06:52 分类:问答Updating a postmodern row in a more functional way
I have a couple of classes (namely book and user). I need to update a book by setting its lended slot to t and its lended-to to the borrower\'s id.[详细]
2023-03-20 17:05 分类:问答asdf-install missing component
I\'m having a weird issue with asdf-install. * (require :asdf-install) (\"ASDF-INSTALL\") * (asdf-install:install :split-sequence)[详细]
2023-03-19 15:22 分类:问答Using Common Lisp CLOS objects as keys in a hashtable?
I\'d like to use Common Lisp CLOS objects as keys in a hashtable.I thought it would be as simple as this:[详细]
2023-03-18 08:50 分类:问答Install lisp on my linux machine
I use Vim as my editor. \"Practical common Lisp\" suggest installing Lispbox, I don\'t know how to use emacs, don\'t know how to run lisp code with that T.T after that i find lisp plugin for vim calle[详细]
2023-03-16 12:57 分类:问答Executes a function until it returns a nil, collecting its values into a list
I got this idea from XKCD\'s Hofstadter comic; what\'s the best way to create a conditional loop in (any) Lisp dialect that executes a function until it returns NIL at which time it collects the retur[详细]
2023-03-16 03:55 分类:问答