Welcome to the CHICKEN Scheme pasting service

scrutinizer warning pasted by mario-goulart on Wed Jun 11 20:55:54 2014

$ cat opt.scm
(module foo ()

(import chicken scheme)

(define foo
  (let ((buf '()))
    (lambda (#!optional bar)
      (if bar
          (set! buf (cons bar buf))
          buf))))

(define xxx (append (foo) '(1)))

)

$ csc -S opt.scm

Warning: at toplevel:
  (opt.scm:12) in procedure call to `append', expected argument #1 of type `list', but was given an argument of type `undefined'

scrutinizer warning (simpler case) pasted by mario-goulart on Thu Jun 12 15:52:11 2014

(module foo ()

(import chicken scheme extras)

(define foo
  (let ((buf '()))
    (lambda ()
      (if (random 2)
          (set! buf '())
          buf))))

(define xxx (append (foo) '(1)))

)

(< (random 2) 1) added by mario-goulart on Thu Jun 12 15:56:40 2014

(module foo ()

(import chicken scheme extras)

(define foo
  (let ((buf '()))
    (lambda ()
      (if (< (random 2) 1)
          (set! buf '())
          buf))))

(define xxx (append (foo) '(1)))

)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure that returns the car of a car?
Visually impaired? Let me spell it for you (wav file) download WAV