[plt-scheme] Re: On C#

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Wed May 23 17:40:24 EDT 2007


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?


Posted on the users mailing list.