[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [plt-scheme] dynamic method-name for send, in v200

At Wed, 22 May 2002 15:41:40 +0100, Peter Lane wrote:
> In the send syntax with v200 (I'm using alpha 12), is it possible to 
> have the method-name dynamically created?

Not with `send', but you can get the same effect with `make-generic' if
you know the class:

 (send-generic o
               (make-generic my-class% (if do-x? 'set-x! 'set-y!))