Opened 16 years ago

Closed 15 years ago

#18 closed defect (duplicate)

only, except and rename don't work on core syntactic forms

Reported by: Alex Shinn Owned by: felix winkelmann
Priority: major Milestone:
Component: expander Version: 4.0.1
Keywords: Cc:
Estimated difficulty:

Description

CHICKEN
(c)2008-2009 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.0.2 - SVN rev. 14239
macosx-unix-gnu-x86 [ manyargs dload ptables applyhook ]
compiled 2009-04-16 on pchelka (Darwin)

#;1> (module x () (import (rename scheme (lambda fn))) ((fn (x) (+ x x)) 2))
; loading /usr/local/lib/chicken/4/scheme.import.so ...

Warning: renamed identifier not imported: (lambda fn)

Warning: reference to possibly unbound identifier: x

Warning: reference to possibly unbound identifier: fn

Error: module unresolved: x

Call history:

<syntax> (module x () (import (rename scheme (lambda fn))) ((fn (x) (+ x x)) 2))
<syntax> (##core#module x () (import (rename scheme (lambda fn))) ((fn (x) (+ x x)) 2))
<syntax> (import (rename scheme (lambda fn)))
<syntax> (##core#undefined)
<syntax> ((fn (x) (+ x x)) 2)
<syntax> (fn (x) (+ x x))
<syntax> (x)
<syntax> (+ x x) <--

#;1>

Change History (3)

comment:1 Changed 16 years ago by felix winkelmann

Status: newassigned

This is a known problem - several core forms are not defined as syntax, but are handled directly by the compiler and interpreter.

comment:2 Changed 16 years ago by felix winkelmann

Component: compilerexpander

comment:3 Changed 15 years ago by felix winkelmann

Resolution: duplicate
Status: assignedclosed

See #49

Note: See TracTickets for help on using tickets.