[Top][All Lists]

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

Re: sending list

From: Manuel Giraud
Subject: Re: sending list
Date: 12 Sep 2001 14:25:18 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Martin Grabmueller <address@hidden> writes:

> You need to convert the list to a string before sending it to the
> port.  Consider the following:
> guile> (call-with-output-string (lambda (s) (write '(define a 8) s)))
> "(define a 8)"

I don't really understand the behaviour of `call-with-output-string',
the documentation says : 

"Calls the one-argument procedure @var{proc} with a newly created
 output port.  When the function returns, the string composed of the
 characters written into the port is returned."

I don't understand how useful can be a "newly created output port" on
which you have no control (is a socket, a file? which one?). 

Anyway, is it possible with this function and `call-with-input-string'
to send a s-expression (as a string) over socket, retrieve it on the
server side and evaluate it?

"Never imagine yourself not to be otherwise than what it might appear
to others that what you were or might have been was not otherwise than
what you had been would have appeared to them to be otherwise"
  The Duchess

_Manuel Giraud_

reply via email to

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