#229 require-library breaks in environments

open
nobody
None
5
2007-07-15
2007-07-15
No

When I'm at the sisc prompt and I do:

SISC (1.16.6)
#;> (eval '(require-library 'sisc/libs/srfi/srfi-8) (sisc-initial-environment))
(sisc/libs/srfi/srfi-8)
#;> (eval '(require-library 'sisc/libs/srfi/srfi-8) (sisc-initial-environment))
#t
#;> (eval '(receive (a b) (values 1 2) (+ a b)) (sisc-initial-environment))
Error: undefined variable 'a'.
---------------------------
To enable more detailed stack tracing, set the dynamic parameter max-stack-trace-depth to a non-zero value, e.g. 16.
---------------------------
Some stack trace entries may have been suppressed. To see all entries set the dynamic parameter suppressed-stack-trace-source-kinds to '().

On the second attempt the library is deemed to be loaded but its exported bindings aren't visible in the environment.

Discussion

  • Logged In: YES
    user_id=722618
    Originator: YES

    Also:

    SISC (1.16.6)
    #;> (eval '(require-extension (srfi 8)) (sisc-initial-environment))
    #;> (eval '(require-extension (srfi 8)) (sisc-initial-environment))
    Error: import from unknown module srfi-8