Using OB-Refectory you can do:
Open Environment | Select Methods
And enter:
[ :each | each sendsToSuper ]
If you do that on an already scoped browser (e.g. Open Environment |
Subclasses), you get what you want even with less coding.
If you think this is generally useful to find super-sends, I could
even integrate such an environment.
Cheers,
Lukas
On 6/20/08, Alexandre Bergel <[EMAIL PROTECTED]> wrote:
> Pfff...
> Stupid are we. We haven't seen CompiledMethod>>sendsToSuper
>
> Thanks Adrian,
> Alexandre
>
>
>
> On 20 Jun 2008, at 15:55, Adrian Lienhard wrote:
>
>
> > Hi Stef,
> >
> > It seems like the code you posted is more complex than it needs to be.
> Wouldn't the following three lines of code do the same?
> >
> > Getting all super sending methods of a class:
> > Morph methods select: #sendsToSuper
> >
> > Getting all super sending methods of a class and its subclasses:
> > Morph withAllSubclasses inject: Set new into: [ :result :class |
> > result addAll: (class methods select: #sendsToSuper); yourself ]
> >
> > HTH,
> > Adrian
> >
> > On Jun 20, 2008, at 11:39 , Stéphane Ducasse wrote:
> >
> >
> > > it would be nice to have a better version with tests for getting method
> perfomring super send
> > >
> > > Stef
> > >
> > > We did that in a rush with alex sthis morning
> > >
> > >
> <gettingSupercalls.2.cs>_______________________________________________
> > > Pharo-project mailing list
> > > [email protected]
> > >
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> > >
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > [email protected]
> >
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
> >
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project