This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

problems with lisp compiler

2 posts · 2361 views

Hi,

I'm getting a really really strange error with my lisp app, and I'm wondering if any of you has encountered anything like this before...
I have a function called build that has as parameter a list. Now lets say I have two lists A and B.
I'm using SBCL btw. If I do:

(build A)
; I get the expected result
; but then:

(build B)

; I get an error


However, If I do:

(build A)
; I get the expected result
; then, recompile, and do:

(build B)
; I get the expected result


Isn't this reeeeally strange? Any ideas?


Thanks!

Re: problems with lisp compiler

habadoh wrote:Isn't this reeeeally strange? Any ideas?
No ideas without seeing the code or knowing what error you get. It sounds like you might be modifying literal data somewhere, because that's an easy way to produce unintended side-effects.