The Inbox: Environments-tonyg.79.mcz

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

The Inbox: Environments-tonyg.79.mcz

commits-2
Tony Garnock-Jones uploaded a new version of Environments to project The Inbox:
http://source.squeak.org/inbox/Environments-tonyg.79.mcz

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

Name: Environments-tonyg.79
Author: tonyg
Time: 26 March 2021, 5:37:48.213254 pm
UUID: 653dd6de-a4d9-4656-8d2e-4e5d5dcf3803
Ancestors: Environments-tonyg.78

EXPERIMENTAL. Builds on .78 to offer a little more reflection on Environments, suitable for use by tooling (see forthcoming Tools-tonyg.1034).

=============== Diff against Environments-tonyg.78 ===============

Item was added:
+ ----- Method: Environment>>allSubNamespaces (in category 'accessing') -----
+ allSubNamespaces
+ ^ Array streamContents: [:s | self namespaceTreeDo: [:ns | s nextPut: ns]]!

Item was added:
+ ----- Method: Environment>>exports (in category 'accessing') -----
+ exports
+ "TODO this is gross - can we think of something better?"
+ | temp |
+ temp := Environment withName: #temp.
+ temp import: self.
+ ^ temp provisions!

Item was added:
+ ----- Method: Environment>>policies (in category 'accessing') -----
+ policies
+ ^ policies!

Item was added:
+ ----- Method: Environment>>removePolicy: (in category 'accessing') -----
+ removePolicy: policy
+ policies := policies copyWithout: policy!