Skip to content

Error with exports that start with : #895

Description

@Retropikzel

I ran into this with the SRFI-42. It exports :, :list, :vector and such.

main.scm:

(import (scheme base)
        (foo bar))

(:hello)

foo/bar.sld:

(define-library
  (foo bar)
  (import (scheme base)
          (scheme write))
  (export :hello)
  (begin
    (define (:hello)
      (display "Hello")
      (newline))))
stklos -I . main.scm
**** Error while executing command ("main.scm")
         Where: in compiler-error
        Reason: bad exportation `#:hello'. Call was (export #:hello). Call was (import (scheme base) (foo bar))

  - error
  - compiler-error
  - %macro-expand
  - <<let/call>>
  - compile
  - #[closure 799674243840]
  - <<let/call>>
  - #[closure 7996742437c0]
  - %call-for-values
  - <<let/call>>
  - ...
Set shell variable STKLOS_FRAMES to set visible frames
EXIT

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions