Search found 7 matches

by kesha
Fri Nov 11, 2016 1:04 am
Forum: newLISP in the real world
Topic: string function returns literal list
Replies: 3
Views: 6266

Re: string function returns literal list

Hi,
http://www.newlisp.org/downloads/newlis ... .html#join

Code: Select all

> (set 'MYLIST '("a" "b" "c"))
("a" "b" "c")
> (join MYLIST)
"abc"
> (join MYLIST "-")
"a-b-c"
> (join MYLIST (string "-" (join MYLIST) "-"))
"a-abc-b-abc-c"
by kesha
Fri Oct 07, 2016 8:19 am
Forum: newLISP in the real world
Topic: bug?
Replies: 3
Views: 4210

Re: bug?

Thanks Lutz!
by kesha
Thu Oct 06, 2016 6:15 pm
Forum: newLISP in the real world
Topic: bug?
Replies: 3
Views: 4210

bug?

newLISP v.10.7.1 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (= 'A 'A) true > (= 'A 'B) nil <--------------- !!! > (define (Test A B C)) (lambda (A B C)) > (++ (find 'D (first Test))) 1 > (= 'A 'A) true > (= 'A 'B) 1 <---------------- ???
by kesha
Mon Apr 25, 2016 8:46 pm
Forum: newLISP newS
Topic: segmentation fault
Replies: 3
Views: 8197

Re: segmentation fault

I don't think this is the correct behaviour.
The program falls, without the possibility to fix something.
by kesha
Mon Apr 25, 2016 10:38 am
Forum: newLISP newS
Topic: segmentation fault
Replies: 3
Views: 8197

segmentation fault

OS: GNU/Linux Gentoo x86_64 and Gentoo x86
gcc: 4.9.3

Code: Select all

newLISP v.10.7.0 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h
> (unpack "c" 1)
segmentation fault

Code: Select all

newLISP v.10.7.1 32-bit on Linux IPv4/6 UTF-8, options: newlisp -h
> (unpack "c" 1)
segmentation fault
Oops...
by kesha
Wed Dec 05, 2012 3:12 am
Forum: newLISP in the real world
Topic: case
Replies: 2
Views: 1724

Re: case

It's just food for thought on the use of recursion. If refined, could get interesting. For example: #!/usr/bin/env newlisp (define (test-case KEY) (case KEY (0 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (1 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (2 (begin (println "KEY => " KE...
by kesha
Tue Dec 04, 2012 9:17 pm
Forum: newLISP in the real world
Topic: case
Replies: 2
Views: 1724

case

Hi All, how can perform multiple checks. (define (test-case KEY) (case KEY (0 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (1 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (2 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (3 (begin (println "KEY => " KEY)(test-case (++ KEY)))) (...