[racket] How to make eval work on define?

From: Monica Tomson (monica.tomson at gmail.com)
Date: Sat Nov 17 01:06:15 EST 2012

Hi,

When I use eval on an S-Expression, where there are something like (define
len (...)), racket screams at me define: not allowed in an expression
context in: (define len (make-length 10))

My questions are:

   - How to make eval work on definition?
   - If eval is not designed to work on definitions, then is there some
   workarounds that can make it work?

I appreciate any help!

Thanks,

Monica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121116/bf4c216f/attachment.html>

Posted on the users mailing list.