What Happend To Tango Graphic's Package

Vladimir Panteleev thecybershadow at gmail.com
Sun Sep 23 05:21:24 PDT 2007


On Sun, 23 Sep 2007 12:11:22 +0300, Lester Martin <Lester at ewam-associates.com> wrote:

> Ok.  I just was wandering because all the GUI libraries I have downloaded seem very tango uncooperative.  I have used DFL and tango with the lowest dmd version that can support both of them and DFL still gives me function dfl.socket.AsyncSocket.close function close does not override anything.  I haven't looke much at any other GUI libs because this was my favorite before tango was released.

Tango's Socket.close got renamed two times - once to "disconnect" and then to "detach". Beats me why. Here's my DFL patch to fix it:

diff -u -r C:\Downloads\dfl-20070811\import\dfl/socket.d C:\Soft\dmd\import\dfl/socket.d
--- C:\Downloads\dfl-20070811\import\dfl/socket.d	2007-07-27 10:47:42.000000000 +0300
+++ C:\Soft\dmd\import\dfl/socket.d	2007-08-31 06:24:35.593750000 +0300
@@ -188,10 +188,26 @@
 	}
 	
 	
-	override void close()
+	version(Tango)
+	{
+		override void detach()
+		{
+			unregisterEvent(this);
+			super.detach();
+		}
+
+		void close()
+		{
+			detach();
+		}
+	}
+	else
 	{
-		unregisterEvent(this);
-		super.close();
+		override void close()
+		{
+			unregisterEvent(this);
+			super.close();
+		}
 	}
 	
 	

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list