diff qt/qtd/Meta.d @ 320:5c6455c4889b signals

remove rubbish
author eldar_ins@eldar-laptop
date Fri, 25 Dec 2009 22:08:25 +0500
parents 894d40eb89b6
children 4e31cbd9e20c
line wrap: on
line diff
--- a/qt/qtd/Meta.d	Fri Dec 25 21:48:32 2009 +0500
+++ b/qt/qtd/Meta.d	Fri Dec 25 22:08:25 2009 +0500
@@ -65,4 +65,19 @@
         }
     }
     return 0;
+}
+
+template isDg(Dg)
+{
+    enum isDg = is(Dg == delegate);
+}
+
+template isFn(Fn)
+{
+    enum isFn = is(typeof(*Fn.init) == function);
+}
+
+template isFnOrDg(Dg)
+{
+    enum isFnOrDg = isFn!(Dg) || isDg!(Dg);
 }
\ No newline at end of file