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

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Dec 19 13:34:55 EST 2004

wuyanbo wrote:

>Does anyone know why DrScheme doesn't allow this kind of structure. 
>(define (main)
>    (define (function)
>        ..
>        ..)
>error message given by Drscheme
>"define: found a definition that is not at the top level"
Did you remember to change the language level to one of the PLT languages?

Jens Axel Søgaard

Posted on the users mailing list.