[squeak-dev] The Trunk: Network-ul.81.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Aug 27 22:12:59 UTC 2010


Levente Uzonyi uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ul.81.mcz

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

Name: Network-ul.81
Author: ul
Time: 27 August 2010, 11:42:58.099 pm
UUID: ed4a64cf-2d3a-174f-858b-384a021ae828
Ancestors: Network-nice.80

- all VMs have finalization support, so there's no need to check for it anymore
- Socket class >> #register: and #unregister: now returns the added/removed object

=============== Diff against Network-nice.80 ===============

Item was changed:
  ----- Method: Socket class>>register: (in category 'registry') -----
  register: anObject
+ 	
+ 	^self registry add: anObject!
- 	WeakArray isFinalizationSupported ifFalse:[^anObject].
- 	self registry add: anObject!

Item was changed:
  ----- Method: Socket class>>unregister: (in category 'registry') -----
  unregister: anObject
+ 	
+ 	^self registry remove: anObject ifAbsent: nil!
- 	WeakArray isFinalizationSupported ifFalse:[^anObject].
- 	self registry remove: anObject ifAbsent:[]!

Item was changed:
  ----- Method: Socket class>>registry (in category 'registry') -----
  registry
+ 
+ 	^Registry ifNil: [ Registry := WeakRegistry new ]!
- 	WeakArray isFinalizationSupported ifFalse:[^nil].
- 	^Registry isNil
- 		ifTrue:[Registry := WeakRegistry new]
- 		ifFalse:[Registry].!




More information about the Squeak-dev mailing list