The Trunk: Kernel-jcg.438.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-jcg.438.mcz

commits-2
Joshua Gargus uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-jcg.438.mcz

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

Name: Kernel-jcg.438
Author: jcg
Time: 5 April 2010, 12:40:23.346 am
UUID: 8d53a86d-8fd5-8c42-9bc7-abea484a3e5d
Ancestors: Kernel-ar.437

Fix embarrassing bug in Promise>>resolveWith:

=============== Diff against Kernel-ar.437 ===============

Item was changed:
  ----- Method: Promise>>resolveWith: (in category 'resolving') -----
  resolveWith: arg
  "Resolve this promise"
  mutex critical: [
  isResolved ifTrue: [self error: 'Promise was already resolved'].
  value := arg.
  isResolved := true.
+ resolvers ifNotNil: [resolvers do: [:r | self evaluateResolver: r]].
- resolvers ifNotNil: [resolvers do: [:r | self evaluateResolver: value]].
  ].!