|
From: Teemu L. <tli...@ik...> - 2013-06-24 13:31:01
|
I get false compiler note "deleting unreachable code" on Slime when I
compile the following function in Emacs buffer with C-c C-c
(slime-compile-defun).
(defun foo (thing)
(setf thing (mapcar #'identity thing))
(sort thing #'string-lessp))
The (sort ...) expression is underlined, meaning it is "unreachable".
Yet, the sorting works. If I remove the (setf thing (mapcar ...))
expression the compiler note goes away. I'm using SBCL 1.1.8.30-51bc001
on Linux 3.2.0-4-amd64.
(I understand that this FOO function doesn't make entirely sense. It's
just mimized version of code I noticed in my program.)
|