[gambit-list] include, load and macros

Atticus atticus0 at posteo.org
Sat May 30 02:52:19 EDT 2015


Thanks.

Marc Feeley <feeley at iro.umontreal.ca> writes:

>> 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



More information about the Gambit-list mailing list