Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
hi all, I would like to know what is the best way to list all methods of a class, a method like: Class>>#allMethods so I can get apply some #asArray on it_______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
<className> selectors ------------------------------------------------------------------------ Bill Erickson GemTalk Systems Engineering 15220 NW Greenbrier Parkway #240, Beaverton OR 97006 ------------------------------------------------------------------------ On Tue, Feb 24, 2015 at 7:15 AM, Pierre CHANSON via GemStone-Smalltalk <[hidden email]> wrote:
_______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
Thank you very much Reno and Bill ! actually for me SystemRepository class or Repository don't reconize # _methodDict. Maybe due to my version of GemStone ? (GemStone64Bit3.2.1-x86_64.Linux) I was using something like: (Repository instVarNamed: 'methDicts') asArray. But was not exactly nice nor what I needed because it give me some GsNMethod. 2015-02-24 12:32 GMT-03:00 Bill Erickson <[hidden email]>:
... [show rest of quote] _______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
Actually an interesting thing with GsNMethods would be to access the source code from here somehow... Pierre2015-02-24 14:15 GMT-03:00 Pierre CHANSON <[hidden email]>:
... [show rest of quote] _______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
Alright <class> sourceCodeAt: <aSelector found with #selectors>. Got it :) Not direct but efficient 2015-02-24 14:40 GMT-03:00 Pierre CHANSON <[hidden email]>:
... [show rest of quote] _______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
946 posts
|
In reply to this post by Gemstone/S mailing list
Do you want the names of the methods or the compiled methods themselves? What is it you want to do with them? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
946 posts
|
In reply to this post by Gemstone/S mailing list
Well, there is GsNMethod>>#sourceString. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
276 posts
|
The idea was to look for a method of a class, known it's name, then see the source code. So my primary idea was to go to the class, then list the compiled methods form here, select the one with the good name and then get the source code. :)2015-02-24 17:16 GMT-03:00 Richard Sargent via GemStone-Smalltalk <[hidden email]>: Pierre wrote ... [show rest of quote] _______________________________________________ GemStone-Smalltalk mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk |
Free forum by Nabble | Edit this page |