This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: load-from-port or something?


Maciej Stachowiak <mstachow@mit.edu> writes:

> Does guile have a procedure something like load that works on a port
> instead of a filename? I know there is eval-string which does this
> specifically for string ports in effect, and that you can get this
> effect by repeatedly doing read-and-eval! on the port, but I was
> wondering if there is a friendly yet general procedure.

read-and-eval! is currently the closest you get.

I think we should implement a `load-from-port'.  Jim?

/mdj