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

From: Laurent (laurent.orseau at gmail.com)
Date: Sun Sep 19 15:53:23 EDT 2010

> > But I'm wondering if multiple calls to define-class->singleton would
> > then cause multiple calls to dynamic-require, which would take too
> > much time... ?
>
> You can lift expressions to the top-level and then use those to avoid
> multiple dynamic-require's.  Search for lift in
> collects/racket/contract/private/provide.rkt for an example (this is
> the code that avoids creating multiple wrapper functions for contracts
> when the contracts are put on with provide/contract).
>
>
Ah that is what 'lift' is for then. I'll take a look, thanks.

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100919/dc2e0b87/attachment.html>

Posted on the users mailing list.