How to find out the number of methods in Squeak 3.0

Andreas Raab Andreas.Raab at gmx.de
Fri Jul 5 23:01:20 UTC 2002


Hi Lily,

One of the nice things about "everything being an object" is that even
methods are objects (they are instances of CompiledMethod). So all you
need to do is to ask CompiledMethod how many instances it has, e.g.,

	CompiledMethod instanceCount.

will tell you exactly how many methods exist in Squeak. [BTW, strictly
spoken there are no "instance methods" in Squeak - they are all class
methods, e.g., associated with the class of an object not with the
instance]

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of Lily Smith
> Sent: Friday, July 05, 2002 9:16 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: How to find out the number of methods in Squeak 3.0
> 
> 
> Dear experts:
> 
> I am a newbie. How can I find out the total number of
> instance methods and class-side methods in Squeak 3.0?
> 
> Thanks!
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 




More information about the Squeak-dev mailing list