*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Wed, 08 Feb 2006 19:27:36 +0100
changeset 9103 b934315bb0b1
parent 9102 e4e444c5ddbd
child 9104 c86073f4e3c2
*** empty log message ***
OSHandle.st
--- a/OSHandle.st	Wed Feb 08 19:27:22 2006 +0100
+++ b/OSHandle.st	Wed Feb 08 19:27:36 2006 +0100
@@ -14,7 +14,7 @@
 
 ExternalAddress subclass:#OSHandle
 	instanceVariableNames:''
-	classVariableNames:''
+	classVariableNames:'Lobby'
 	poolDictionaries:''
 	category:'Compatibility-ST80'
 !
@@ -37,18 +37,21 @@
 
 documentation
 "
-    ST-80 compatibility class.
-    This may be required when existing code has to be ported to ST/X;
-    however, it may not be complete and more protocol may be added in the future.
-    The code here was created when public domain code (Manchester) had to
-    be ported to ST/X and missing classes/methods were encountered, and code added
-    by reasoning 'what the original class could probably do there'.
+    Ongoing work: 
+        extract handle specific operations and rewrite Streams, Sockets etc.
+        to pass all work to these handles.
 
     [author:]
         Claus Gittinger
 "
 ! !
 
+!OSHandle class methodsFor:'initialization'!
+
+initialize
+    Lobby := Registry new.
+! !
+
 !OSHandle class methodsFor:'Compatibility-VW'!
 
 currentOS
@@ -80,12 +83,26 @@
 
 !OSHandle methodsFor:'finalization'!
 
+finalizationLobby
+    "answer a Registry used for finalization."
+
+    ^ Lobby
+!
+
 finalize
     self subclassResponsibility
 ! !
 
+!OSHandle methodsFor:'queries'!
+
+isValid
+     ^ self address ~~0
+! !
+
 !OSHandle class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.10 2003-08-30 12:32:18 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.11 2006-02-08 18:27:36 cg Exp $'
 ! !
+
+OSHandle initialize!