[racket] ] Converting symbols to procedures?
On Aug 11, 2014, at 9:57 AM, Kevin Forchione <lysseus at gmail.com> wrote:
>
> Here’s another example of my problem:
>
> #lang racket
>
> (define foo%
> (class object%
> (super-new)
> (field [x 0])))
> (define bar%
> (class object%
> (super-new)
> (field [x 0])))
>
> ∏(apply make-object '(foo% bar%))
>
> This doesn’t work because the make-object is being passed symbols instead of classes. If I wrap make-object in a function that does an eval on the symbol I run into another problem dealing with namespaces.
Oops. That should be
(map make-object ‘(foo% bar%))
-Kevin