Welcome to the CHICKEN Scheme pasting service

Syntax error: in `unquote' - pair expected added by zilti on Thu Jan 11 23:20:28 2018

(define-syntax construct
  (er-macro-transformer
   (lambda (form rename compare?)
     (let* ((superclass (second form))
	    (class (third form))
	    (args (drop form 3))
	    (classname (string->symbol (string-append "<" (symbol->string class) ">"))))
       `(begin (define-class ,classname (,superclass))
	       (define-method (initialize-instance (c ,classname)) 
		 ((setter ptr) c (#~,class
				  ,@(map (lambda (x) `(alist-ref ,x (attributes c))) args) 
				  return: pointer:))
		 (call-next-method)))))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Type in the text below:
                             _         
  __ ___   ___   _ _ __ ___ | | ___ __ 
 / _` \ \ / / | | | '_ ` _ \| |/ / '__|
| (_| |\ V /| |_| | | | | | |   <| |   
 \__, | \_/  \__,_|_| |_| |_|_|\_\_|   
    |_|                                
Visually impaired? Let me spell it for you (wav file) download WAV