On Fri, Feb 15, 2008 at 01:15:46PM -0800, [EMAIL PROTECTED] wrote:
On Fri, Feb 15, 2008 at 10:07:37PM +0200, guy keren wrote:
>#define PI 3.14159
>Likewise in Scheme.... (define pi 3.14159)
but this PI of yours is not a C-language symbol - it is munched by the
pre-processor, and the compiler just sees the number.
no idea how this is handled in scheme.
I agree. So I'm wondering what the proper CS-speak term for PI above is.
Probably just "macro". If you defined a C constant:
const float pi = 3.14159;
it would be a "constant" "variable". C had constants tacked on later, so
they are just attributes of a variable. Think of it as a read-only
variable.
Dave
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg