chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#1811: [r7rs] 'environment' wrongly imports all symbols from r7rs module


From: Chicken Trac
Subject: #1811: [r7rs] 'environment' wrongly imports all symbols from r7rs module
Date: Thu, 08 Sep 2022 12:45:06 -0000

#1811: [r7rs] 'environment' wrongly imports all symbols from r7rs module
--------------------------------+------------------------
            Reporter:  rgherdt  |       Type:  defect
              Status:  new      |   Priority:  major
           Milestone:  someday  |  Component:  extensions
             Version:  5.3.0    |   Keywords:
Estimated difficulty:           |
--------------------------------+------------------------
 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).

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1811>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]