The Trunk: Files-ul.85.mcz

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

The Trunk: Files-ul.85.mcz

commits-2
Levente Uzonyi uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-ul.85.mcz

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

Name: Files-ul.85
Author: ul
Time: 27 August 2010, 11:43:45.728 pm
UUID: c02d6ffb-87c5-f649-90c8-99d5a4796548
Ancestors: Files-nice.84

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

=============== Diff against Files-nice.84 ===============

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

Item was changed:
  ----- Method: StandardFileStream 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: StandardFileStream class>>register: (in category 'registry') -----
  register: anObject
+
+ ^self registry add: anObject!
- WeakArray isFinalizationSupported ifFalse:[^anObject].
- self registry add: anObject!