[plt-scheme] load from string or port ?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Apr 27 18:01:19 EDT 2004

At Tue, 27 Apr 2004 16:57:10 -0500, Robby Findler wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> At Tue, 27 Apr 2004 17:52:40 -0400, "Millaway, John" wrote:
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > 
> > Hi,
> > 
> > What is the equivalent of  (load "path"), but for code in a string or port? 
> 
> (read (eval p))

ahem. Make that (eval (read p)). Yikes.

Or, for a string: (eval (read (open-input-string s)))

Robby


Posted on the users mailing list.