Welcome to the CHICKEN Scheme pasting service

Coops record-variant test added by Kooda on Tue Apr 23 12:24:24 2019

(test-begin "print-object method")

(define-class <foo> ())
(define ofoo (make <foo>))

(define-method (print-object (obj <foo>) port)
  (display "OK" port))

(test "direct call" "OK" (with-output-to-string (lambda () (print-object ofoo (current-output-port)))))
(test "via record printer" "OK" (with-output-to-string (lambda () (display ofoo))))

(test-end)

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 cdr?
Visually impaired? Let me spell it for you (wav file) download WAV