help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Print object name and method name in log statements


From: Stephen Woolerton
Subject: Re: [Help-smalltalk] Print object name and method name in log statements
Date: Wed, 25 Feb 2015 14:14:30 +1300

> Is there a way to access the name of the current Object, and name of the 
> current method, when a program is running? 


To answer my own question..

Re printing the name of the current method, BlockClosure has a method for this.
[ ] method
and also can show the object name (the object that is used as ’self’ when 
executing the receiver)
[ ] receiver


reply via email to

[Prev in Thread] Current Thread [Next in Thread]