On Thu, 2009-12-03 at 18:56 +, Neil Jerram wrote:
> Linas Vepstas writes:
>
> > 2009/12/2 Neil Jerram :
> > Neil,
> >
> > For my own edification -- is tehre any difference between
> >
> >> (let ((sym (with-input-from-string mything read)))
> >
> > and
> >
> > (let ((sym (string->symbol mythi
Linas Vepstas writes:
> 2009/12/2 Neil Jerram :
> Neil,
>
> For my own edification -- is tehre any difference between
>
>> (let ((sym (with-input-from-string mything read)))
>
> and
>
> (let ((sym (string->symbol mything)))
In the case where mything is a string consisting of symbol syntax
chara
Richard Shann 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 ma
2009/12/2 Neil Jerram :
Neil,
For my own edification -- is tehre any difference between
> (let ((sym (with-input-from-string mything read)))
and
(let ((sym (string->symbol mything)))
?
--linas
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.
FWIW the core bit of code I ended up with takes th
2009/12/2 Richard Shann :
> I am stuck on one of those symbol/variable-name-in-a-string things
> again:
>
> (define mything "display")
> (display (eval-string mything))
>
> that's fine. But can I test that the string in mything is the name of a
> variable before doing the eval-string and finding ou
Richard Shann writes:
> I am stuck on one of those symbol/variable-name-in-a-string things
> again:
>
> (define mything "display")
> (display (eval-string mything))
>
> that's fine. But can I test that the string in mything is the name of a
> variable before doing the eval-string and finding out
I am stuck on one of those symbol/variable-name-in-a-string things
again:
(define mything "display")
(display (eval-string mything))
that's fine. But can I test that the string in mything is the name of a
variable before doing the eval-string and finding out the hard way? I've
been doing (symbol?