guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load external scm files


From: Panicz Maciej Godek
Subject: Re: Load external scm files
Date: Wed, 4 Dec 2013 15:09:14 +0100

Oh yes, you're right -- it's because of the behaviour of "load".
However, this should solve the problem:
(define-macro (define-test-function)
  `(define (test-function)
     ,(with-input-from-file "external.scm" read)
     x))

(note however that it would load only the first sexp from
"external.scm", but I think that it should be a sufficient hint)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]