[racket-dev] Racket breaking and exiting

From: John Clements (clements at brinckerhoff.org)
Date: Wed Jun 1 19:37:20 EDT 2011

On Jun 1, 2011, at 4:04 PM, Eduardo Bellani wrote:

> My racket breaks if the following code is executed:
> 
> (current-input-port (open-input-string "a"))
> 
> with the following message:
> 
> reference to undefined identifier: a

?

That sounds like the right behavior to me, in an environment with a REPL.  That is, you set current-input-port to pull from the string "a", then you drop into the REPL, which reads from stdin, producing the string "a", which reads as a reference to the variable a.

No?

John Clements

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110601/736d47e4/attachment.p7s>

Posted on the dev mailing list.