The Inbox: Protocols-jr.70.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Protocols-jr.70.mcz

commits-2
A new version of Protocols was added to project The Inbox:
http://source.squeak.org/inbox/Protocols-jr.70.mcz

==================== Summary ====================

Name: Protocols-jr.70
Author: jr
Time: 8 February 2020, 4:08:08.736789 pm
UUID: 928804bd-3a8c-1b44-909f-70f1da3e7814
Ancestors: Protocols-jr.69

Evaluate do-its in Lexicon from the point of view of the browsed class, not the class of the currently selected method.

This allows you to use pools or class variables from subclasses while writing code that you will later accept into the browsed class (instead of replacing the method in the selectedClass).

=============== Diff against Protocols-jr.69 ===============

Item was changed:
  ----- Method: Lexicon>>doItReceiver (in category 'model glue') -----
  doItReceiver
  "This class's classPool has been jimmied to be the classPool of the class being browsed. A doIt in the code pane will let the user see the value of the class variables.  Here, if the receiver is affiliated with a specific instance, we give give that primacy"
 
+ ^ self targetObject ifNil: [self targetClass]!
- ^ self targetObject ifNil: [self selectedClass]!