Opened 14 years ago

Closed 14 years ago

#352 closed defect (fixed)

let/let* environments aren't properly seen in profiling mode

Reported by: sjamaan Owned by: felix winkelmann
Priority: major Milestone:
Component: compiler Version: 4.5.x
Keywords: Cc:
Estimated difficulty:

Description

When compiling the following code in profiling mode, csc gives an error claiming "a" is undefined. Here's a simplified example:

(module whatever ()
 (import chicken scheme)
 (let ((a (lambda (x) (print x))))
   (a "ok")))

It doesn't give an error when there's no module surrounding it. Wrapping the let in a procedure doesn't help.

Change History (3)

comment:1 Changed 14 years ago by sjamaan

letrec instead of let[*] works, though.

comment:2 Changed 14 years ago by felix winkelmann

Milestone: 4.6.0

comment:3 Changed 14 years ago by sjamaan

Resolution: fixed
Status: newclosed

The fix in experimental works great.

Note: See TracTickets for help on using tickets.