On Sun, 2013-11-17 at 05:09 -0500, Mark H Weaver wrote: > Guile's 'include' also supports relative paths if the (include "...") > form is found within a file, or more generally, if it was read from a > port that had its filename set. > > Please tell us more about what you were doing, so that we can find out > what's going wrong. >
I think it's a common situation. I planed to include b.scm into a.scm, like: -----------------a.scm-------------------- (define-syntax define-primitive ......) (include "b.scm") -----------------end---------------------- And let b.scm contains all the primitives definitions, which is explicitly for later extending. -----------------b.scm------------------- (define-primitive %halt 0 0) (define-primitive pair? 1 1) (define-primitive cons 2 2) ...... ------------------end-------------------- Now my solution is to copy all the contents from b.scm to a.scm. But this way seems not so cool hmm... > Thanks, > Mark