Maybe you could write a plugin/primitive to do the work? On 2010-03-02, at 3:50 PM, Alexandre Bergel wrote:
> Dear List, > > I was wondering whether there is a fast way to know the method call > stack depth. Something like what follows does the job: > > -=-=-=-=-=-=-=-=-=-=-=-= > | depth running | > depth := 0. > running := thisContext. > [ running sender notNil ] whileTrue: [ running := running sender. > depth := depth + 1]. > depth > -=-=-=-=-=-=-=-=-=-=-=-= > > But it is rather slow. Anyone has a suggestion? > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- =========================================================================== John M. McIntosh <[email protected]> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com =========================================================================== _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
