[racket-dev] Racket breaking and exiting

From: Eduardo Bellani (ebellani at gmail.com)
Date: Thu Jun 2 09:42:53 EDT 2011

Ahh, now I think I got it.

Thanks again for the prompt reply.

On 06/02/2011 08:50 AM, Sam Tobin-Hochstadt wrote:
> On Thu, Jun 2, 2011 at 12:39 AM, Eduardo Bellani <ebellani at gmail.com> wrote:
>> I think I understand you, but in that case it should report the
>> undefined reference and stay on the repl, no?
> 
> The next thing after `a' on the port is end-of-file, so the REPL
> decides that everything is done, and exits.
> 
>> Thanks everyone of the prompt answers.
>>
>> On 06/01/2011 08:37 PM, John Clements wrote:
>>>
>>> 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
>>>
>>
>>
>> --
>> Eduardo Bellani
>>
>> omnia mutantur, nihil interit.
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://lists.racket-lang.org/listinfo/dev
>>
> 
> 
> 


-- 
Eduardo Bellani

omnia mutantur, nihil interit.


Posted on the dev mailing list.