Search found 8 matches

by dvebc
Mon Aug 31, 2009 8:11 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

Work for me after replacing the ASCII 92 character you used as a single quote with a bonafide single quote character ASCII 27. Here is the working code: (define number-list '(100 300 500 701 900 1100 1300 1500)) (dolist (n number-list (!= (mod n 2) 0)) (println (/ n 2))) Thanks Sammo , That works n...
by dvebc
Mon Aug 31, 2009 7:24 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

In that example it seems there are some minor but relevant syntax errors. I didn't see the original example, so you could cheeck if you copied it well. Can you tell m exaclty where you found it? That example can be found in the 'Introduction to newLISP' tutorial , which is here http://www.newlisp.o...
by dvebc
Sun Aug 30, 2009 11:22 am
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

Thanks ale870 for the detailed reply. I am bit confused on this code given in the tutorial . define number-list ’(100 300 500 701 900 1100 1300 1500)) (dolist (n number-list (!= (mod n 2) 0)) ; escape if true (println (/ n 2))) In the previous section of the tutorial , (dolist (n number-list )) it's...
by dvebc
Fri Aug 28, 2009 7:16 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

Is there anyway that I can stop the return value getting printed. You can use: (silent(println "Hello World")) Magic , That is working . Can you please explain , what happens to the returned value now when you get a chance? Does every function is newLISP return a value? I am very new to LISP , that...
by dvebc
Fri Aug 28, 2009 7:11 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

"C:\path-file" will not work, because the "" is a special (escape) character. The best for file-path names is, to use the forward slash instead, like in "C:/path-file". The forward slash will work on both: Win32 an Unix operating systems. Or you could escape the "" using "C:\\path-file". Many thank...
by dvebc
Fri Aug 28, 2009 12:29 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

"C:\path-file" will not work, because the "" is a special (escape) character. The best for file-path names is, to use the forward slash instead, like in "C:/path-file". The forward slash will work on both: Win32 an Unix operating systems. Or you could escape the "" using "C:\\path-file". Many thank...
by dvebc
Fri Aug 28, 2009 12:28 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

Hi! Every expression in newLISP returns a value. (print "Hello World") is an expression, and it returns the value "Hello World". You'll see this in the terminal, just as you'll see the result of an expression such as (+ 2 2). However, the print function has a side-effect: it prints the string to th...
by dvebc
Thu Aug 27, 2009 9:36 pm
Forum: newLISP newS
Topic: newLISP 10.1.2 issues
Replies: 17
Views: 17554

newLISP 10.1.2 issues

Hi all, I am new in this forum. Installed newLISP in my winxp machine and I started learning it with the help of 'Introduction to newLISP'. One of my problem is with the print function (print "Hello World") result comes like this -- Hello World"Hello World" it's repeating. Another issue is (println(...