chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Constants via define-constant


From: Kon Lovett
Subject: Re: [Chicken-users] Constants via define-constant
Date: Fri, 5 Jul 2019 06:18:46 -0700


> On Jul 5, 2019, at 4:23 AM, Amir Teymuri <address@hidden> wrote:
> 
> Can someone explain what the difference between define and
> define-constant? I read the docs
> https://wiki.call-cc.org/man/5/Module%20(chicken%20base)#define-constant
> but i can't understand what its trying to say. Does define-constant
> defines constants when the program is compiled?

yes, define-constant is compile time only, & the defined name of the constant 
cannot be exported.

the interpreter treats define-constant as define.

when starting out w/ CHICKEN might be best to eschew define-constant & 
define-inline in favor of define

> 
> Many Thanks,
> 
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

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