[racket] Help: Passing a class to a macro and not an identifier
On Sep 15, 2010, at 1:33 PM, Laurent wrote:
>
> This hack will have limitations,
>
> Do you have specific ones in mind?
>
> but you could take this one step
> further by having the argument to your macro be an identifier and then
> taking the symbolic name of the identifier and passing that to
> dynamic-require (at compile time) to get the actual class you want.
>
> That is a nice idea, I'll try that.
How else do you ensure that the object is an instance of the class? But yes, I am stumped and surprised.