Opened 15 years ago
Closed 15 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 by , 15 years ago
comment:2 by , 15 years ago
| Milestone: | 4.6.0 |
|---|
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
The fix in experimental works great.
Note:
See TracTickets
for help on using tickets.

letrec instead of let[*] works, though.