[gambit-list] include, load and macros

Marc Feeley feeley at iro.umontreal.ca
Fri May 29 15:43:06 EDT 2015


> On May 29, 2015, at 2:57 PM, Atticus <atticus0 at posteo.org> wrote:
> 
> Is it possible to "dynamicly" *include* a file?
> 
> For example:
> 
> (include (locate-file "file-with-macros.scm"))

I’d try :

 (define-macro (include ref)

   (define (resolve ref) …)

   `(##include ,(resolve ref)))

Marc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4839 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20150529/04e31aaf/attachment.bin>


More information about the Gambit-list mailing list