Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!luth!sunic!mcsun!ukc!acorn!abccam!phil From: phil@abccam.abcl.co.uk (Phillip Yelland) Newsgroups: comp.lang.smalltalk Subject: Re: Show a method name Summary: Cheap and Cheerful Message-ID: <492@server.abccam.abcl.co.uk> Date: 16 Jul 90 13:53:39 GMT References: <20310@grebyn.com> Reply-To: phil@active-book-co.co.uk (Phillip Yelland) Organization: Active Book Co. and University Comp. Lab., Cambridge, UK Lines: 19 Try the following (esp. in ParcPlace V2.3): ------------------------------------------------------------------------- "Quick hack to return the name of this method---whatever it is" ^self class selectorAtMethod: thisContext method setClass: [:ignored | ] ------------------------------------------------------------------------- Hope this helps. Regards, --Phil