Lisp doesn't work until I run another lisp

Lisp doesn't work until I run another lisp

alex_mcturk
Participant Participant
254 Views
2 Replies
Message 1 of 3

Lisp doesn't work until I run another lisp

alex_mcturk
Participant
Participant

I am having a problem with my lisp,

it gives me the error message

"error: bad argument type: stringp nil"

But I run another lisp an "Old" version

(uses a different defun name)

after I use that code, my new code works fine every time?

 

what could be doing this ? 

0 Likes
Accepted solutions (1)
255 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

Probably some global variable...

0 Likes
Message 3 of 3

Moshe-A
Mentor
Mentor
Accepted solution

@alex_mcturk  hi,

 

"error: bad argument type: stringp nil"

 

This error arise when passing a nil variable (or an invalid) to a function that expect string

example:

(strcat "abc" nil)

 

why it works after you load and old lisp?

maybe a function (with same name) but a call with right variable 😀

 

Moshe

 

 

 

 

0 Likes