Search found 18 matches

by mcc
Sun Mar 29, 2015 10:53 am
Forum: Common Lisp
Topic: (SB)CL: code creates endless loop while it is loaded...
Replies: 5
Views: 7745

Re: (SB)CL: code creates endless loop while it is loaded...

Hi all,

thank you so much for all your help!
I have now understood, that the problems I had mentioned in this
and my previous thread are the same.
I finally stiched something together, which (seems to) work.
Comments are heartly welcome!
(See my other thread...)

Best regards,
mcc
by mcc
Sun Mar 29, 2015 10:50 am
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

Re: CL and a newbie trying to start ... :)

Hi edgar, I finally got something stiched together, which at least does not throw me into the debugger and prints all lines of the file onto the terminal. What do you think? (let (stream line) (defun readsched (schedname) (if (eq stream nil) (setf stream (open schedname))) (setf line (read-line stre...
by mcc
Sun Mar 29, 2015 8:19 am
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

Re: CL and a newbie trying to start ... :)

Hi edgar, Thanks a lot for all your effort to get my struggling into walking ! ;) I wanted to reply with a BIG THANK YOU before I am fully understanding, what the problems of my code are and how to do it correctly. I will reply fully, when I think I have at least understood enough to reply meaningfu...
by mcc
Sun Mar 29, 2015 1:49 am
Forum: Common Lisp
Topic: (SB)CL: code creates endless loop while it is loaded...
Replies: 5
Views: 7745

(SB)CL: code creates endless loop while it is loaded...

Hi, (Gentoo Linux, SBCL 1.2.10) I am at the very start of using LISP. The code: (let ((stream) (initialized 0)) (defun readsched (schedname) ;; if called the first time, open stream (if (eql initialized 0 ) (with-open-file (stream schedname))) ;; set the variable to 1, so stream will not be opened t...
by mcc
Sat Mar 28, 2015 10:42 pm
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

Re: CL and a newbie trying to start ... :)

Hi Edgar, I googled a lot and assembled some lisp code from bits and pieces I found. And -- as exspected -- it does not work: It loops forever. The code is: (let (stream) (defun readsched (schedname) (if (eq stream nil ) (with-open-file (stream schedname))) (read-line stream nil 'foo))) (defun readm...
by mcc
Sat Mar 28, 2015 8:12 pm
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

Re: CL and a newbie trying to start ... :)

Hi, ...now... :) Currently I have a "design problem": As the function, which reads the text, is basically a loop, the portion, which parses the text have to be inside the loop...which in turn makes the whole program a single loop (and not very readable). I would like a reader-function which does not...
by mcc
Sat Mar 28, 2015 6:46 pm
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

Re: CL and a newbie trying to start ... :)

Hi edgar, before I really reply to your great postings let me say a BIG THANK YOU! :) Great! :) :) (By the way I: Quicklisp works now...sbc-1.2.9/1.2.10 had done three tests which were marked as "win32" on Linux, which failed and therefore "sb-bdsd-sockets" was not installed, which in turn is needed...
by mcc
Fri Mar 27, 2015 11:16 pm
Forum: Common Lisp
Topic: CL and a newbie trying to start ... :)
Replies: 8
Views: 13918

CL and a newbie trying to start ... :)

Hi, I am using SBCL on AMD64 Gentoo Linux and Beaglebone Black (embedded Device ARMv7 OMAP8?TI), also Gentoo Linux). Also I am using vim. I haven't done simv, quicklisp etc, because they doesn't want to work for me (compile/installation errors). But this are spare problems for later decades... ;) Cu...