Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaulting export of all defined names if (export) form is absent #4

Open
alvatar opened this issue Sep 9, 2014 · 0 comments
Open

Comments

@alvatar
Copy link
Contributor

alvatar commented Sep 9, 2014

Library:

(define-library (spheres/math/exact)
    (export double) ; <-- If commented, 
    (import (gambit))
    (begin
      (define double (λ (x) (* 2 x)))))

Code using the library:

(define-library (asdf) (import (gambit) (spheres/math/exact)) (begin (pp 'asdf)))

If (export) isn't used, then:

*** ERROR IN (console)@10.71 -- Unbound variable: spheres/math/exact#pp

Should the (export) clause be mandatory? If so, a warning/error should be emitted when absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant