Summary

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

Metadata

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.