[plt-scheme] Re (modified): macros that expand into LISTS OF top-level definitions with computed names

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Aug 14 11:44:42 EDT 2009

Will this help you along?

#lang scheme

(define-syntax (def-all stx)
   (syntax-case stx ()
     [(_ type ...)
      #`(begin (begin (define type 1)
                      (register-instruction 'type))
               ...)]))

(define (register-instruction x) x)

(def-all exec float integer)



Posted on the users mailing list.