Opened 5 months ago

#1811 new defect

[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 5 months ago.
Patch to bug involving 'environment' in scheme.eval.scm

Download all attachments as: .zip

Change History (1)

Changed 5 months ago by rgherdt

Attachment: patch added

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

Note: See TracTickets for help on using tickets.