Skip to content

symbol '%find-macro-clause' unbound with users SRFI-8 #705

@Retropikzel

Description

@Retropikzel

main.scm:

(import (scheme base)
        (scheme write)
        (srfi 8))

(receive (a b) (values 1 2)
         (begin
           (display a)
           (newline)
           (display b)
           (newline)))

srfi/8.sld:

(define-library
  (srfi 8)
  (import (scheme base))
  (export receive)
  (include "8.scm"))

srfi/8.scm:

(define-syntax receive
  (syntax-rules ()
    ((receive formals expression body ...)
     (call-with-values (lambda () expression)
                       (lambda formals body ...)))))

stklos -I . main.scm gives error:

**** Error while executing command ("main.scm")
         Where: in compile
        Reason: symbol '%find-macro-clause' unbound in module 'stklos'

  - <>
  - #[closure 7fa63a2f8f00]
  - <>
  - compile
  - #[closure 7fa63a2f8140]
  - <>
  - #[closure 7fa63a2f80c0]
  - %call-for-values
  - <>
  - call-with-values
  - ...
Set shell variable STKLOS_FRAMES to set visible frames
EXIT

If you comment out the srfi 8 import and copy the code directly to the file it works.

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