Summary

[r7rs] 'environment' wrongly imports all symbols from r7rs module

Metadata

Attachments

Description

The procedure `environment` from (scheme eval) imports all symbols from `r7rs` by default, leading to a wrong behavior:

 (import (scheme eval))
 (eval '(+ 1 3) (environment '(except (scheme base) +)))
 .
 .
 .
 4

The expected behavior is an "unbound variable: +" error.

I'll upload a patch (thanks Felix).

Changes and comments

[2022-09-08 14:49:08 UTC] rgherdt attached patch (description=Patch to bug involving 'environment' in scheme.eval.scm)

[2023-11-06 23:28:22 UTC] felix changed status from new to closed

[2023-11-06 23:28:22 UTC] felix set resolution to fixed