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

From: wuyanbo (wuyanbo at cc.hut.fi)
Date: Sun Dec 19 14:35:18 EST 2004

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.