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

Re: [Scheme-reports] "include" filename resolution

Hi Andre,

On Sun 14 Aug 2011 23:47, Andre van Tonder <andre@x> writes:

> On Sun, 14 Aug 2011, Andy Wingo wrote:
>> On Sat 13 Aug 2011 17:18, Andre van Tonder <andre@x> writes:
>>> On Sat, 13 Aug 2011, Andy Wingo wrote:
>>>> However `load' with relative paths does not make any portable kind of
>>>> sense.
>>> Why not?  It's always worked on all the Schemes I've used.
>> What does it do in all the Schemes you've used?  If you can specify it
>> clearly then that language should be in the report.
> Relative paths being with respect to the directory of the file containing the
> LOAD command.

That sounds like `include' to me.  But, it is what Guile's macro hackery
does for `load' too.

  ;;; foo/bar.scm
  (module (foo bar)
    (import (scheme))
    (export bar-load)
      (define (bar-load f) (load f))))

  ;;; at the repl
  (import (foo bar))
  (bar-load "baz.scm")
What do you expect to happen here?


Scheme-reports mailing list