This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
newLISP v.10.7.0 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h
> (unpack "c" 1)
segmentation fault
newLISP v.10.7.1 32-bit on Linux IPv4/6 UTF-8, options: newlisp -h
> (unpack "c" 1)
segmentation fault
#!/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 => " KEY)(test-case (++ KEY))))
(3 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(true (println "END CASE..."))))
(test-case 0)
(exit)
; eof
-------------------------------------------------------------
KEY => 0
KEY => 1
KEY => 2
KEY => 3
END CASE...
(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))))
(4 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(5 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(6 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(7 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(8 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(9 (begin (println "KEY => " KEY)(test-case (++ KEY))))
(true (println "END CASE..."))))