[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] set! on unbound variable
From: |
Evan Hanson |
Subject: |
Re: [Chicken-users] set! on unbound variable |
Date: |
Sat, 24 Sep 2016 13:47:27 +1200 |
Hi Jinsong,
Not a bug, but certainly something that can be confusing if you don't
expect it. In your example, `helo` is implicitly defined as a toplevel
variable at the point of `set!.
The difference is noted (very, very succinctly) in the manual here:
http://wiki.call-cc.org/man/4/Extensions%20to%20the%20standard#set
Unfortunately there's not currently a way to generate a warning in this
situation, that I know of.
Cheers,
Evan