[plt-scheme] why doesn't DrScheme allow define within define?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sun Dec 19 15:43:01 EST 2004

That won't allow internal define. Choose R5RS or PLT Pretty Big. -- 
Matthias


On Dec 19, 2004, at 2:35 PM, wuyanbo wrote:

> I am using the "How to Design Program -- advanced student"
>
> Yanbo
>
> ----- Original Message -----
> From: "Matthias Felleisen" <matthias at ccs.neu.edu>
> To: "wuyanbo" <wuyanbo at cc.hut.fi>
> Cc: <plt-scheme at web-ext.cs.brown.edu>
> Sent: Sunday, December 19, 2004 8:30 PM
> Subject: Re: [plt-scheme] why doesn't DrScheme allow define within 
> define?
>
>
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>> Which Scheme in DrScheme are you using? See Language | Choose Language
>>
>> -- Matthias
>>
>>
>> On Dec 19, 2004, at 12:40 PM, wuyanbo wrote:
>>
>>>   For list-related administrative tasks:
>>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>
>>> Does anyone know why DrScheme doesn't allow this kind of structure.
>>>
>>> (define (main)
>>>     (define (function)
>>>         ..
>>>         ..)
>>> (function))
>>>
>>>
>>> error message given by Drscheme
>>>
>>> "define: found a definition that is not at the top level"
>>>
>>> Yanbo
>>>
>>
>>



Posted on the users mailing list.