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

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sun Dec 19 13:30:46 EST 2004

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.