[racket] Help: Passing a class to a macro and not an identifier

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Sep 15 13:35:29 EDT 2010

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. 

Posted on the users mailing list.