guile-user
[Top][All Lists]
Advanced

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

Re: Symbol vs. Value Question


From: Keith Wright
Subject: Re: Symbol vs. Value Question
Date: Fri, 19 Oct 2001 12:57:54 -0400

> From: "Robert A. Uhl" <address@hidden>
> Cc: address@hidden
> 
> Well, I'd figured roughly what was going on.  I'm supposing that the
> (list ...) method is more usual and appropriate than the '(...)
> method?

That's funny.  True in exactly the same sense that the
addition method is more usual and appropriate than the subraction
method.

> That said, is there a good way in guile to grab the value of a symbol?
> Like I said, I was reading source and header files late into the night
> and had no luck.  But perhaps I was looking in the wrong direction.

guile> (define xxx '(not for children))
guile> (eval 'xxx (interaction-environment))
(not for children)

This works, but it's still the wrong direction.  If you want the
value back, put it in a variable, not a symbol.



reply via email to

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