unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: richard.shann@virgin.net
Cc: guile-user@gnu.org
Subject: Re: A variable that holds a string which may be the name of a variable.
Date: Thu, 03 Dec 2009 18:52:44 +0000	[thread overview]
Message-ID: <87pr6vq48z.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <1259856685.3060.36.camel@debianrts.home> (Richard Shann's message of "Thu, 03 Dec 2009 16:11:25 +0000")

Richard Shann <richard.shann@virgin.net> writes:

> Thanks to all guileans who have responded. I seem to have a workable
> solution based on Neil's code. The thing I hadn't grokked was the
> existence of the with-input-from-string procedure. I had been messing
> with defined? and symbol? but got nowhere.

I would say the magic is more in `read' than in
`with-input-from-string'.

`read' is responsible for the conversion from
something-that-looks-like-code to actual code - which in your case is a
single symbol.  `with-input-from-string' just tells `read' that the
something-that-looks-like-code is a string.

Regards,
        Neil




  reply	other threads:[~2009-12-03 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 16:11 A variable that holds a string which may be the name of a variable Richard Shann
2009-12-03 18:52 ` Neil Jerram [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-02 19:22 Richard Shann
2009-12-02 22:19 ` Neil Jerram
2009-12-03 17:23   ` Linas Vepstas
2009-12-03 18:56     ` Neil Jerram
2009-12-03 19:00       ` Richard Shann
2009-12-02 22:37 ` Linas Vepstas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pr6vq48z.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-user@gnu.org \
    --cc=richard.shann@virgin.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).