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

From: wuyanbo (wuyanbo at cc.hut.fi)
Date: Sun Dec 19 12:40:03 EST 2004

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.