Newsgroups: comp.lang.scheme
From: Marco Maggi <mrc....@gmail.com>
Date: Sat, 12 Sep 2009 13:36:29 +0200
Local: Sat, Sep 12 2009 7:36 am
Subject: generating and inserting definitions in macro expansions
I see that:
(import (rnrs)) works; so, given: (library (lib) I want to automatically generate an equivalent of: (import (rnrs) (define gamma-a alpha-a) I do: (import (rnrs) (define-syntax make-record-accessor-aliases (define (make-record-accessor-aliases k rtd) (define (make-accessor k rtd-name parent-rtd slots i) (define (slot-name->accessor-name rtd-name slot-name) (syntax-case stx () (make-record-accessor-aliases gamma) which evaluates with no errors, but then: (gamma-a o) raises a "gamma-a unbound identifier" error. I do not Suggestions? [1] <http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-13.html#node_sec...> You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||