<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
> But I'm wondering if multiple calls to define-class->singleton would<br>
> then cause multiple calls to dynamic-require, which would take too<br>
> much time... ?<br>
<br>
</div>You can lift expressions to the top-level and then use those to avoid<br>
multiple dynamic-require's. Search for lift in<br>
collects/racket/contract/private/provide.rkt for an example (this is<br>
the code that avoids creating multiple wrapper functions for contracts<br>
when the contracts are put on with provide/contract).<br>
<br></blockquote></div><br>Ah that is what 'lift' is for then. I'll take a look, thanks.<br><br>Laurent<br>