Summary
[r7rs] 'environment' wrongly imports all symbols from r7rs module
Metadata
- Id: 4a6de301725626e5c6cf1f341105741d571b8c47
- Trac id: 1811
- Type: defect
- Reporter: rgherdt
- Owner:
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version: 5.3.0
- Changetime: 2023-11-06 23:28:22 UTC
- Created: 2022-09-08 14:45:06 UTC
- Keywords:
Attachments
- 4a6de301725626e5c6cf1f341105741d571b8c47/attachments/patch
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).