On Fri, Feb 15, 2008 at 11:56:06AM -0800, [EMAIL PROTECTED] wrote:
I can accept that a variable is a container that a symbol points to.

That reminds me of a memory address in C.  That also seems to imply
that the variable can change and hence the value associated with a symbol
can change.

What is the container/variable for this construct in C???

#define PI 3.14159

Likewise in Scheme.... (define pi 3.14159)

What about   (setq pi 6)

which is perfectly valid in Scheme.  Bindings in scheme are always places
that hold a value.  It doesn't have the concept of a constant, just
programmers with enough discipline to not change things.

The C macro is replaced at compile time with just a number, textually in
the code.  The scheme would be more equivalent to the C

  float pi = 3.14159;

But still a little different, since C doesn't have symbols at run time.
There are still symbols, but they are bound to variables at compile time.

David

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to