Opened 2 years ago

Closed 13 months ago

#1811 closed defect (fixed)

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

Reported by: rgherdt Owned by:
Priority: major Milestone: someday
Component: extensions Version: 5.3.0
Keywords: Cc:
Estimated difficulty:

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).

Attachments (1)

patch (427 bytes) - added by rgherdt 2 years ago.
Patch to bug involving 'environment' in scheme.eval.scm

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by rgherdt

Attachment: patch added

Patch to bug involving 'environment' in scheme.eval.scm

comment:1 Changed 13 months ago by felix winkelmann

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.