[plt-scheme] Re: On C#

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Thu May 24 05:20:50 EDT 2007

On 5/23/07, Danny Yoo <dyoo at cs.wpi.edu> wrote:
>
>
> 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?
>
>

That seems a good idea. Anyway, would this be a tool, or changing the
source directly would be better? If a tool, how can you capture the
current sexp being written?

This is somewhat, probably, what the F1 keybinding does. Anyone cares
to point me to the code where the callback is implemented?

Cheers,


-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


Posted on the users mailing list.