Summary
let/let* environments aren't properly seen in profiling mode
Metadata
- Id: ecc3ea49a96b4fe927350cd71c94f20d15fca728
- Trac id: 352
- Type: defect
- Reporter: sjamaan
- Owner: felix
- Cc:
- Status: closed
- Component: compiler
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 4.5.x
- Changetime: 2010-08-25 18:06:46 UTC
- Created: 2010-08-23 21:35:41 UTC
- Keywords:
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.
Changes and comments
[2010-08-23 22:03:45 UTC] sjamaan wrote:
letrec instead of let[[*]|] works, though.
[2010-08-24 12:14:09 UTC] felix removed milestone 4.6.0
[2010-08-25 18:06:46 UTC] sjamaan changed status from new to closed
[2010-08-25 18:06:46 UTC] sjamaan set resolution to fixed
[2010-08-25 18:06:46 UTC] sjamaan wrote:
The fix in experimental works great.