Hi all.
I'm trying to write a package using multiple .scm files. My idea was to put auxiliary functions inside an util.scm file that I'd later include* from the main .scm of that package.
To make things clearer, let's take as an example the "examples" tree in the snow-generic tarball. I'm doing something like this:
$ cd pi/v1.0.0/snow $ cat >pi2.scm (define* (pi2-hello) (display "hello world") (newline)) ^D $ cat >>pi.scm (include* "pi2.scm") ^D $ cd ../../.. # back into the examples dir $ snow -- hello/v1.0.0/snow/hello.scm open-input-file: cannot open input file: "/tmp/snow-generic/v1.0.0/examples/pi2.scm" (No such file or directory; errno=2)
From this error message it seems like the include* relative path is
resolved with respect to the path where I invoked snow, not the path of the file actually holding the include* form. Is this the intended behaviour?
Thanks for your help.
AB
Afficher les réponses par date
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 9-Mar-07, at 2:50 AM, Anakim Border wrote:
From this error message it seems like the include* relative path is
resolved with respect to the path where I invoked snow, not the path of the file actually holding the include* form. Is this the intended behaviour?
Thanks for your help.
Yes "include*" in the generic Snow does not obey the spec on Scheme hosts that don't have "include". I have found a workaround that will be uploaded sometime in the next few days along with a whole bunch of other fixes and extensions.
Marc
snow-users-list@iro.umontreal.ca