chicken-janitors
[Top][All Lists]
Advanced

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

Re: #1771: Except specificier in imports


From: Chicken Trac
Subject: Re: #1771: Except specificier in imports
Date: Fri, 16 Jul 2021 11:32:57 -0000

#1771: Except specificier in imports
---------------------------------------+--------------------
            Reporter:  Idiomdrottning  |      Owner:  (none)
                Type:  defect          |     Status:  new
            Priority:  major           |  Milestone:  5.3
           Component:  unknown         |    Version:
          Resolution:                  |   Keywords:
Estimated difficulty:                  |
---------------------------------------+--------------------

Comment (by sjamaan):

 Note, this only goes wrong for macros:

 {{{
 ;; my-display.scm
 (module my-display (display)
   (import (only scheme define) (only (chicken base) error))
   (define (display x)
     (error "Wrong display")))
 }}}

 {{{
 (module reexported-my-display ()
   (import (only my-display display) (chicken module))
   (reexport (only my-display display)))
 }}}

 {{{
 ;; at REPL
 #;1> (import (except my-display display))
 ; loading ./my-display.import.scm ...
 ; loading ./my-display.so ...
 #;2> (display "hi\n")
 hi
 }}}

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