[squeak-dev] The Inbox: Tools-btc.368.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jul 12 16:10:33 UTC 2011
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-btc.368.mcz
==================== Summary ====================
Name: Tools-btc.368
Author: btc
Time: 13 July 2011, 12:09:33.417 am
UUID: 04b62880-e5a2-3445-8440-482d7c7586fb
Ancestors: Tools-btc.367
Single stepping through a debugger might observe the state of an OrderedCollection instance after creation by basicNew but before initiialisation. Thus 'object size' throws a DNU error for arithmetic on a nil value that needs to be handled.
=============== Diff against Tools-btc.367 ===============
Item was changed:
----- Method: OrderedCollectionInspector>>objectSize (in category 'as yet unclassified') -----
objectSize
+ "Single stepping through a debugger might observe the state of an OrderedCollection
+ instance after creation by basicNew but before initiialisation. Thus 'object size'
+ throws a DNU error for arithmetic on a nil value that needs to be handled here."
+
+ ^ [ object size ] on: Error do: [ 0 ]
+ !
- "Single stepping through a debugger can observe the object state after creation but before initiialisation."
- "Thus 'object size' may throw an axception for trying to do arithmetic on nil."
-
- [ object size ] on: Exception do: [ ^ 0 ].
- ^ object size.!
More information about the Squeak-dev
mailing list
|