meevax icon indicating copy to clipboard operation
meevax copied to clipboard

Adding directories to load path

Open Retropikzel opened this issue 8 months ago • 0 comments

I tried looking around the documentation and code but could not find a way to add directory to library load path. Is there one?

Example:

snow/foo/bar.sld: (define-library (foo bar) (import (scheme base) (scheme write)) (export (baz)) (include "bar.scm"))

snow/foo/bar.scm: (define baz (lambda () (display "Hello world") (newline)))

main.scm: (import (scheme base) (foo bar)) (baz)

I dont think the library naming directory structure link is in R7RS but most implementations support it.

If there is no flag for this may I suggest -I and -A from SRFI-138?

Then running code above would be something like this: meevax -I ./snow main.scm

Retropikzel avatar Apr 17 '25 17:04 Retropikzel