[plt-scheme] Re: On C#
On Tue, 22 May 2007, Robby Findler wrote:
> Completing the methods of a class is tricky, since you don't have a type
> system to tell you what the pool of methods is.
There's still a bit that can be done at runtime:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> (define c (class object% (define/public (f) 'hello) (super-new)))
> (define i (new c))
> (interface->method-names (object-interface i))
(f)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
so maybe a tool might run in tandum with a program to collect method
names?