Skip to content

Adding directories to load path #2355

@Retropikzel

Description

@Retropikzel

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:
stak -I ./snow main.scm

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions