From ... From: Erik Naggum Subject: Re: association lists ... Date: 1997/06/22 Message-ID: <3075969771339621@naggum.no>#1/1 X-Deja-AN: 251763073 References: <5ohk7h$ekg@helix.cs.uoregon.edu> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Juan Jose Flores Romero | I found a really bad *feature* in Allegro CL 4.2 for SPARCS. If an | association list has nil as one of the keys, you get weird behavior. your example consistently yields the same results in _all_ the Lisp environments I have access to. (defun sublis-test (test-arg) (let ((alist '((a . 1) (b . 2) (nil . 3) (d . 4) (e . 5)))) (sublis alist test-arg))) (sublis-test '(= a b)) => (= 1 2 . 3) (sublis-test ()) => 3 (sublis-test '(())) => (3 . 3) I think there lies wisdom in this rewrite of the last example: (sublis-test (cons nil nil)) => (3 . 3) #\Erik -- if we work harder, will obsolescence be farther ahead or closer?