Opened 3 weeks ago

Last modified 3 weeks ago

#1757 new defect

Reexport behaving inconsistently

Reported by: Idiomdrottning Owned by:
Priority: major Milestone: 5.3
Component: unknown Version: 5.2.0
Keywords: Cc:
Estimated difficulty:

Description

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)

Change History (1)

comment:1 Changed 3 weeks ago by sjamaan

Milestone: someday5.3

Need to investigate if we can fix this for 5.3

Note: See TracTickets for help on using tickets.