On 9/17/19 10:36 PM, Vasilij Schneidermann wrote:
Hey David,

You're using version 4 of the compiler, but version 5 of the documentation. You 
can tell the latter by looking for the number in the URL.


Thanks for the tip.


Taking a stab in the dark:

http://wiki.call-cc.org/man/4/The%20User's%20Manual

http://wiki.call-cc.org/man/4/Getting%20started

2019-09-17 22:49:46 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ cat palindrome.scm
;;; http://wiki.call-cc.org/man/4/Getting%20started
;;; downloaded 2019-09-17

(define (palindrome? x)
  (define (check left right)
    (if (>= left right)
        #t
        (and (char=? (string-ref x left) (string-ref x right))
             (check (add1 left) (sub1 right)))))
  (check 0 (sub1 (string-length x))))
(let ((arg (car (command-line-arguments))))
  (display
   (string-append arg
                  (if (palindrome? arg)
                      " is a palindrome\n"
                      " isn't a palindrome\n"))))

2019-09-17 22:50:17 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ csc -o palindrome palindrome.scm

2019-09-17 22:50:24 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ ./palindrome level
level is a palindrome

2019-09-17 22:50:29 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ ./palindrome liver
liver isn't a palindrome


The current release of Chicken appears to be 5.1.0:

https://code.call-cc.org/


I do not see a Debian backport:

https://packages.debian.org/search?keywords=chicken&searchon=names&section=all&suite=stretch-backports


Only a Sid package (no thanks; I prefer stability):

https://packages.debian.org/search?keywords=chicken&searchon=names&suite=all&section=all


Does anyone have any experiencing compiling, installing, and running Chicken 5.1.0 from a source tarball on Debian 9? Can I do this with a normal user account?


David

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to