chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] I'm confused (again)


From: Jim Ursetto
Subject: Re: [Chicken-users] I'm confused (again)
Date: Thu, 26 Feb 2009 15:46:13 -0600

On Thu, Feb 26, 2009 at 3:12 PM, William Ramsay <address@hidden> wrote:
> This may seem like a strange question, but I'm confused about the use of
> set!.    It may be a holdover from my pre-scheme days, but it seems I should
> be declaring a variable before using it with set!

William,

Check out http://chicken.wiki.br/Extensions%20to%20the%20standard
under 4.1.6.  In Chicken, set! for unbound toplevel variables is
allowed.  Also check out R5RS section 5.2.1.

You might prefer, for style or portability, to have a dummy definition
at toplevel, such as (define foo #f) or just (define foo), prior to
performing the set!.

Jim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]