chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1437: csi needs double imports


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1437: csi needs double imports
Date: Tue, 16 Jan 2018 12:18:55 -0000

#1437: csi needs double imports
---------------------------------+---------------------------
            Reporter:  mario     |      Owner:
                Type:  defect    |     Status:  new
            Priority:  major     |  Milestone:  5.0
           Component:  expander  |    Version:  5.0
          Resolution:            |   Keywords:  double import
Estimated difficulty:            |
---------------------------------+---------------------------

Comment (by felix):

 Note that this problem still exists in the recent change for allowing
 import of base modules in static executables (commit
 81e400fc2516b64d2c768fcd5e97772ecc8e5327). I assume this is caused by a
 wrong initialization order of imports. To reproduce this problem, try
 this:

 {{{
 ;; compile: bin/csc -static x.scm && ./x -:rd
 (import srfi-1)
 (print (assoc 'a '((a . 1)) eq?))
 (print (eval '(begin (import srfi-1) (assoc 'a '((a . 1)) eq?))))
 }}}

 The first call to assoc succeeds, the second fails with an error message.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1437#comment:7>
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]