[plt-scheme] evaluating contents of a string

From: Chris Warrington (chrisw at rice.edu)
Date: Wed Jul 26 22:49:16 EDT 2006

David Richards @ 2006-7-26 10:02:55 PM
"[plt-scheme] evaluating contents of a string" <mid:aab38cf70650399ad18dcb0ef0de3914 at verizon.net>

>> (eval (read (open-input-string "(lambda () (current-seconds))")))
> Questions... in the example above, what happens to the input port?
> Don't we need to close the input port explicitly?

From 11.1.5:
"String input and output ports do not need to be explicitly closed."

-- 
Chris Warrington <chrisw at rice.edu>

In an office: WOULD THE PERSON WHO TOOK THE STEP LADDER YESTERDAY
PLEASE BRING IT BACK OR FURTHER STEPS WILL BE TAKEN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20060726/06ba3524/attachment.sig>

Posted on the users mailing list.