First  |  Prev |  Next  |  Last
Pages: 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
a defense of ad hoc software development
On page 229 of Paul Graham's 'ANSI Common Lisp' he writes: <quote> If programming were an entirely mechanical process -- a matter of simply translating specifications into code -- it would be reasonable to do everything in a single step. But programming is never like that. No matter how precise the specifi... 21 Feb 2010 03:49
Some help with sort
I want to sort a property list on the property date. I have the function: (defun dates-in-list< (first-list second-list) (let ((first-date (getf first-list :date)) (second-date (getf second-list :date))) (string< first-date second-date))) And I sort the list with: (sort *mea... 17 Jan 2010 20:37
The Erik Naggum cll archive
I created a site with 5,121 of Erik Naggum's comp.lang.lisp articles: http://www.xach.com/naggum/articles/ I hope you find it useful. Zach ... 25 Jan 2010 00:42
Missing vs. unbound slot protocols
Hi, the standard defines two generic functions: slot-missing and slot-unbound. However, slot-unbound triggers an unbound-slot error by default, whereas slot-missing only triggers an error. So why the difference ? -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrd... 25 Jan 2010 15:04
Mandatory initialization of a slot
Hello, I have defined a class where a slot *must* be initialized when creating instances: (define-condition modular-ring-without-generator (algebraic-error) () ) (defclass 'modular-ring (ring) ( (ring :initarg :ring :initform (make-instance 'ring) ) (generator :initarg :generator ... 15 Jan 2010 00:40
cffi *foreign-library-directories* is initialized to literal list
In the copy of cffi I have (I forget when I got it) I see in file libraries.lisp the following code (defvar *foreign-library-directories* '() "List onto which user-defined library paths can be pushed.") Isn't modifying this have undefined consequences. -Antony ... 9 Jan 2010 04:13
How to use library in /usr/local/lib with cffi?
Hello. I want to use share library in /usr/local/lib with cffi on my MacOSX 10.6 with SBCL SBCL 1.0.30 But, when I try to use share library in /usr/local/lib like this: (define-foreign-library libqrencode (:darwin "libqrencode.dylib") (t (:default "libqrencode"))) (use-foreign-library libqrencode) But, ... 7 Jan 2010 09:02
asdf - how to unload after the system is ready
Hi, When asdf system is loaded, I create and image, but I do not want asdf to be in the image itself. Is there a way to unload asdf when a system is composed? Regards, AngelP ... 19 Jan 2010 07:55
Using strings in a case construct
I can not find much about case, but I found the following: case is a conditional that chooses one of its clauses to execute by comparing a value to various constants, which are typically keyword symbols, integers, or characters (but may be any objects). So I would expect that I can use strings in a ca... 8 Jan 2010 09:22
A example in SICP
Hi all Today I read the book SICP, chapter 3. I read the code below (define (make-simplified-withdraw balance) (lambda (amount) (set! balance (- balance amount)) balance)) I use the common lisp write like below (defun (make-simplified-withdraw balance) (lambda (amount) (setf balance (- bala... 3 Jan 2010 10:29
First  |  Prev |  Next  |  Last
Pages: 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74