[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
#1757: Reexport behaving inconsistently
From: |
Chicken Trac |
Subject: |
#1757: Reexport behaving inconsistently |
Date: |
Wed, 26 May 2021 11:00:46 -0000 |
#1757: Reexport behaving inconsistently
---------------------------------------+---------------------
Reporter: Idiomdrottning | Type: defect
Status: new | Priority: major
Milestone: someday | Component: unknown
Version: 5.2.0 | Keywords:
Estimated difficulty: |
---------------------------------------+---------------------
OK, so
(module (c)
(frobnicate)
(import scheme (chicken syntax))
(define-syntax frobnicate
(syntax-rules ()
((frobnicate throwaway lis)
(reverse lis)))))
(module (a)
()
(import c
(rename scheme (reverse reverse-og))
(rename (chicken base) (identity reverse))
(chicken module))
(reexport c))
(import a scheme (chicken base))
(print (frobnicate 'a '(b c d e)))
prints out
(e d c b)
if it's all in the same file.
But if c separately is made into an egg and compiled,
and then a separately is made into an egg and compiled,
and the at the REPL you eval the last two lines, it prints out
(b c d e)
--
Ticket URL: <https://bugs.call-cc.org/ticket/1757>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- #1757: Reexport behaving inconsistently,
Chicken Trac <=