Opened 10 years ago

Closed 9 years ago

#18 closed defect (duplicate)

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

Reported by: ashinn Owned by: felix
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 10 years ago by felix

  • Status changed from new to assigned

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 10 years ago by felix

  • Component changed from compiler to expander

comment:3 Changed 9 years ago by felix

  • Resolution set to duplicate
  • Status changed from assigned to closed

See #49

Note: See TracTickets for help on using tickets.