<div dir="ltr">Hi Clément,<div><br></div><div>    I've written code like this:</div><div><br></div><div>        (atEachStepBlock isNil or: [atEachStepBlock method ~~ thisContext method]) ifTrue:</div><div>            [...</div><div><br></div><div>where the intent is to see if a block is the one created by the current method or not.  This won't work for full blocks.  But at least in my Squeak code and the Pharo7 image as of today there's no accessor for the "home method" yet.  I expect we should be able to write</div><div><br></div><div><div>        (atEachStepBlock isNil or: [atEachStepBlock homeMethod ~~ thisContext homeMethod]) ifTrue:</div><div>            [...</div><div><br></div><div>where homeMethod is defined as</div><div><br></div><div>CompiledCode>>homeMethod<br></div><div>    ^self subclassResponsibility</div><div><br></div><div>CompiledMethod>>homeMethod</div><div>    ^self</div><div><br></div><div>CompiledBlock>>homeMethod</div><div>    ^self outerCode homeMethod</div><div><br></div><div>Context>>homeMethod<br></div><div>    ^method homeMethod</div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div><br></div><div>BlockClosure>>homeMethod</div><div>    ^outerContext homeMethod</div><div><br></div><div><br></div><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>