Thx Ralph!! Much obliged ...
I now see how I confused the "break expression" with "sub list" expression!
Learning any flavour of LISP as been such a challenge for me! But at my age, the struggle might be an excellent way to keep the "leetle grey cells" flashing and sparking! LOL
Search found 115 matches
- Thu Aug 24, 2017 11:50 am
- Forum: newLISP in the real world
- Topic: dolist on main-args problem
- Replies: 6
- Views: 5399
- Thu Aug 24, 2017 4:28 am
- Forum: newLISP in the real world
- Topic: dolist on main-args problem
- Replies: 6
- Views: 5399
Re: dolist on main-args problem
So how does this reconcile with the code snippet
that you kindly volunteered in your previous post - which works like a charm?
Code: Select all
(dolist (x (2 (main-args)))
- Thu Aug 24, 2017 1:17 am
- Forum: newLISP in the real world
- Topic: dolist on main-args problem
- Replies: 6
- Views: 5399
Re: dolist on main-args problem
Thanks for the reply Ron!
The manual says:
How am I interpreting the manual incorrectly?
The manual says:
The optional "exp break" appeared to follow all the other arguments!dolist
syntax: (dolist (sym list|array [exp-break]) body)
(dolist (x '(a b c d e f g) (= x 'e)) ; prints: abcd
(print x))
How am I interpreting the manual incorrectly?
- Thu Aug 24, 2017 12:54 am
- Forum: newLISP in the real world
- Topic: set - setf - setq woes
- Replies: 6
- Views: 5395
Re: set - setf - setq woes
@s.v. Thanks! I will read your reply carefully and as an exercise, I will fabricate some examples to prove your points.
I have been using (set 'a-symbol blah blah) as an equivalent to (setq a-symbol blah blah). Maybe that was a bad assumption!
Thx for the input ...
I have been using (set 'a-symbol blah blah) as an equivalent to (setq a-symbol blah blah). Maybe that was a bad assumption!
Thx for the input ...
- Wed Aug 23, 2017 9:18 pm
- Forum: newLISP in the real world
- Topic: dolist on main-args problem
- Replies: 6
- Views: 5399
dolist on main-args problem
I have this test code: #!c:\bin\newlisp\newlisp.exe (println (main-args 2)) ;; works OK (dolist (x (main-args)) (println $idx ":" x)) (exit) The above code works fine! BUT - when I ask dolist to use a "break expression", I'm making it choke and I don't know why! So if I do: (dolist (x (main-args 2))...
- Wed Aug 23, 2017 3:49 am
- Forum: newLISP in the real world
- Topic: set - setf - setq woes
- Replies: 6
- Views: 5395
Re: set - setf - setq woes
I did RTFM !! Examples with extra skinny explanations ! Thanks anyway! +1vetelko wrote:Description in manual is short and simple
http://www.newlisp.org/downloads/newlis ... .html#setf
- Tue Aug 22, 2017 4:58 am
- Forum: newLISP in the real world
- Topic: set - setf - setq woes
- Replies: 6
- Views: 5395
Re: set - setf - setq woes
Hmm, did you have the variable quoted maybe? Are you asking if I used setf/setq and quoted the symbol as well? I'm not sure ... :/ Regardless of how I screwed up though (and I did ) , I'm looking for extra simple directions as to when to use 'set' , 'setf' and 'setq' so that I won't go down that ro...
- Mon Aug 21, 2017 10:49 pm
- Forum: newLISP in the real world
- Topic: set - setf - setq woes
- Replies: 6
- Views: 5395
set - setf - setq woes
I'm getting back to playing with newLISP! - Again!! :) The following code broke when I used setf or setq! Why is that? What is the subtle diffs between the three? I want to grok this ASAP - so that I don't spin my wheel ever again with setting a symbol, etc. TIA (set 'vowels '("a", "e", "i", "o", "u...
- Thu Aug 11, 2016 11:00 pm
- Forum: newLISP and the O.S.
- Topic: Guiserver on Win10
- Replies: 10
- Views: 12163
Re: Guiserver on Win10
Here's some more clues: c:\bin\newlisp>java -jar guiserver.jar newLISP-GS v.1.66 on Windows 10 double buffering not supported. listening on 64001 Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net....
- Thu Aug 11, 2016 12:55 pm
- Forum: newLISP and the O.S.
- Topic: Guiserver on Win10
- Replies: 10
- Views: 12163
Re: Guiserver on Win10
Code: Select all
c:\bin\newlisp>java newlisp.jar
Error: Could not find or load main class newlisp.jar
- Tue Aug 09, 2016 11:59 am
- Forum: newLISP and the O.S.
- Topic: Guiserver on Win10
- Replies: 10
- Views: 12163
Re: Guiserver on Win10
Java is installed and kept up to date!! :) Other Java-centric software run without a problem.
- Sun Aug 07, 2016 5:15 am
- Forum: newLISP in the real world
- Topic: Testing a symbol against a string ***SOLVED***
- Replies: 2
- Views: 3521
Re: Testing a symbol against a string ***SOLVED***
Thanks for replying! I solved the issue!! So I'm moving on to the next step in my little project!! :)
- Sun Aug 07, 2016 12:39 am
- Forum: newLISP in the real world
- Topic: Testing a symbol against a string ***SOLVED***
- Replies: 2
- Views: 3521
Testing a symbol against a string ***SOLVED***
I've lost a lot of the little LISP-ishness that I managed to acquire over the years. Use it or loose it .... Anyway, I have a variable/symbol -- let's say: (set 'name "some_name") Down the road, I want to test te symbol name to see if it is equal to - say "dukester". If it is, I want to execute a fu...
- Sun Jul 24, 2016 5:15 am
- Forum: newLISP and the O.S.
- Topic: Guiserver on Win10
- Replies: 10
- Views: 12163
Guiserver on Win10
Will not boot for me! A terminal window flashes by for a second or so, and then nothing. I accept all the defaults when I install. Ideas please! TIA ....
- Thu Mar 05, 2015 6:01 pm
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
WOOHOO!!! This is rendered by newLISP v10507c-ab CGI by newLISP v10507 on Win32 HTTP_HOST : localhost HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_LANGUAGE : en-US...
- Thu Mar 05, 2015 5:51 pm
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
I'll check it out, and get back to you!!!
- Thu Mar 05, 2015 4:21 pm
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
Versions a & b bombed out!!! BUT - c & d worked great!! This is rendered by newLISP v10507d CGI by newLISP v10507 on Win32 HTTP_HOST : localhost HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=...
- Thu Mar 05, 2015 3:30 pm
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
No worries!!! My pleasure ...
Got the other "sub" versions DLed - will get back to you when I'm done testing. Got to have breakfast first!! lol
Got the other "sub" versions DLed - will get back to you when I'm done testing. Got to have breakfast first!! lol
- Thu Mar 05, 2015 1:56 am
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
Here you go my friend .... #!D:\Downloads\newlisp10507\newlisp10507.exe (print "Content-Type: text/html\r\n\r\n") (print "<html>") (print "<h4>CGI by newLISP v" (sys-info -2)" on " ostype "</h4>") (dolist (e (env)) (println (e 0) " : " (e 1) "</br>")) (println "</html>") (exit) [Wed Mar 04 18:48:52....
- Thu Mar 05, 2015 12:25 am
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
Like I indicated up the thread, CGI scripts run with zero problems using other language interpreters!! So there is NO http.conf issue as far as I can determine. I have a compiled C script that runs extra quick. I haven't yet seen problems with quick scripts - but I might have missed a lot. :) xytrox...
- Wed Mar 04, 2015 3:21 pm
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
@lutz
Have you had a chance to look into this issue any further? Can I be of some help in that regard?
Have you had a chance to look into this issue any further? Can I be of some help in that regard?
- Sun Feb 22, 2015 1:20 am
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
@xytroxon
@lutz
I get the very same results -- shebangs do not work!! I even re-installed newLISP in c:\newlisp\ in order to eliminate the space BS in "Program Files (x86) ....." etc etc
Zero Joy!!!
@lutz
I get the very same results -- shebangs do not work!! I even re-installed newLISP in c:\newlisp\ in order to eliminate the space BS in "Program Files (x86) ....." etc etc
Zero Joy!!!
- Sun Feb 22, 2015 1:10 am
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
@Lutz
I'll give it a shot - but my original test script was pretty simple also! :) I'll get back to the list ...
I'll give it a shot - but my original test script was pretty simple also! :) I'll get back to the list ...
- Sun Feb 22, 2015 1:03 am
- Forum: newLISP in the real world
- Topic: newlisp-apache-win7
- Replies: 26
- Views: 13616
Re: newlisp-apache-win7
@xytroxon
Thanks a bunch for going the extra mile with such a great (but disappointing) reply!
I didn't know why, but I had a hunch that there was something haywire somewhere. I might just have to revert back to an older version of newLISP like you. Thanks again for the confirmation!!
Thanks a bunch for going the extra mile with such a great (but disappointing) reply!
I didn't know why, but I had a hunch that there was something haywire somewhere. I might just have to revert back to an older version of newLISP like you. Thanks again for the confirmation!!
- Tue Feb 17, 2015 8:32 pm
- Forum: newLISP in the real world
- Topic: Scheme "letrec" equivalent
- Replies: 4
- Views: 3266
Re: Scheme "letrec" equivalent
@rickyboy
Thanks for the porting tips, and fleshing out some of the diffs between the two languages. It all helps - and it's all good!! Much obliged!! I'm playing with gambit-c as well, as I'm porting.
Thanks for the porting tips, and fleshing out some of the diffs between the two languages. It all helps - and it's all good!! Much obliged!! I'm playing with gambit-c as well, as I'm porting.