PCSCHEME FOUTMELDINGEN EN WAARSCHUWINGEN ALPHABETISCH GESORTEERD --------------------------------------------------------------------------- --------------------------------------------------------------------------- > (define func1 (lambda (ls som) (if (null? ls) (som) ; som staat ten onrechte tussen haken (func1 (cdr ls) (+ som (car ls))) ) ) ) > (func1 '(1 2 3) 0) [VM ERROR encountered!] Attempt to call a non-procedural object with 0 argument(s) as follows: (6) --------------------------------------------------------------------------- > (/ 8 0) [VM ERROR encountered!] Divide by zero (/ () (0)) --------------------------------------------------------------------------- In file "test1": (define func1 (lambda (ls som) (cond ((null? ls) (+ som 3) ; haak sluiten ontbreekt (else (func1 (cdr ls) (+ som (car ls))) ) ) ) ) > (load "test1") WARNING -- EOF encountered during READOK -------------------------------------------------------------------------- > (member '(a b c)) [VM ERROR encountered!] Invalid argument count: Function expected 2 argument(s) but was called with 1 as follows: (# (A B C)) ------------------------------------------------------------------------- > (string-append 2 3) [VM ERROR encountered!] Invalid operand to VM instruction ??? --------------------------------------------------------------------------- > (+ "Hallo " "Bertjan!") [VM ERROR encountered!] Non-numeric operand to arithmetic operation (+ "Hallo " "Bertjan!") --------------------------------------------------------------------------- > (define func (lambda () (set! c 4) (display c) ) ) > (func) [VM ERROR encountered!] SET! of an unbound lexical variable C --------------------------------------------------------------------------- > (set! a 1) [VM ERROR encountered!] SET! of an unbound variable A --------------------------------------------------------------------------- In file "test1": (define func1 (lambda (ls som) (cond ((null? ls) som) (else (func1 (cdr ls) (+ som (car ls))) ) ) ) )) ; 1 sluithaak teveel > (load "test1") [ERROR encountered!] Unexpected `)' encountered before `(' () ------------------------------------------------------------------------- > a [VM ERROR encountered!] Variable not defined in current environment A --------------------------------------------------------------------------- Fouttekst nog in te vullen: (append "C" '(a b)) (list-ref '(a b) 2) (define func (lambda () (display "test") (define a 1) ) )