The Trunk: Kernel-eem.1361.mcz

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

The Trunk: Kernel-eem.1361.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1361.mcz

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

Name: Kernel-eem.1361
Author: eem
Time: 2 November 2020, 10:40:38.260046 am
UUID: 7c6efb93-d626-4a62-86f4-c258f8cf199d
Ancestors: Kernel-eem.1360

I couldn't resist...

=============== Diff against Kernel-eem.1360 ===============

Item was changed:
  ----- Method: Context class>>runSimulated: (in category 'simulation') -----
  runSimulated: aBlock
  "Simulate the execution of aBlock, until it ends or is curtailed. Answer the result it returns."
 
  ^thisContext
  runSimulated: aBlock
  contextAtEachStep: []
 
+ "Context runSimulated: [Pen new ifNotNil: [:pen| pen defaultNib: 5. 4 timesRepeat: [pen go: 100; turn: 90]]]"
+
+ "Here's a fun example, reaching into the computation to squash the Display>>fillWhite that mandala: begins with..."
+ "thisContext
+ runSimulated: [Pen new mandala: 45]
+ contextAtEachStep: [:ctxt| ctxt selector == #fillWhite ifTrue: [ctxt scanFor: [:ign| ctxt willReturn]]]"!
- "Context runSimulated: [Pen new defaultNib: 5; go: 100]"!