unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Dereferencing a symbol
@ 2004-01-10 20:58 mbarilli
  0 siblings, 0 replies; only message in thread
From: mbarilli @ 2004-01-10 20:58 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Massive mental block after being away from Guile for several months
...

I've got a module that has some functions written in C.  In a Guile
script I want to be able to do something like:

  (set! foo <some-value>)

and in a C-based function find out the value currently bound to the
symbol `foo'.  `scm_string_to_symbol( scm_makfrom0str("foo") )' gets
me the symbol, but how do I get its current value?

- -- 
Michael J. Barillier               | ``Those who make peaceful
email: mbarilli(at)midsouth.rr.com | revolution impossible will make
web: <http://shadizar.dyndns.org/> | violent revolution inevitable.''
Public key available on request.   |     -- John F. Kennedy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAAGeE2CJ4zjXlSXMRAuSjAJ9fg3DkHnZ9HfVIkB3UspwyDIvjZwCeIRsL
TQgqd9QBHlbXPoGCNMeqkc8=
=w/aX
-----END PGP SIGNATURE-----


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-10 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-10 20:58 Dereferencing a symbol mbarilli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).