[gambit-list] Mixing namespaces and define-type
Axis Sivitz
aosivitz at gmail.com
Fri Apr 19 00:21:45 EDT 2013
The define-type macro generates a handful of procedure definitions. If that type is defined inside a namespace, then it's difficult to export those symbols to the top-level namespace.
Is there a better way than listing each of them by hand? It makes sense to me that there should be a macro that just generates the list of used symbols.
Something like...
(##namespace (cons "foo#"
(define-type-symbols bar member1 member2)
))
would transform to...
(##namespace ("foo#"
make-bar
bar?
bar-member1-set!
and so on...
))
More information about the Gambit-list
mailing list