]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Deprecate static classes
authorJamie McCracken <jamiemcc@gnome.org>
Mon, 26 May 2008 04:10:26 +0000 (04:10 +0000)
committerJamie McCracken <jamiemcc@src.gnome.org>
Mon, 26 May 2008 04:10:26 +0000 (04:10 +0000)
2008-05-26  Jamie McCracken  <jamiemcc@gnome.org>

* vala/valagenieparser.vala:

Deprecate static classes

svn path=/trunk/; revision=1443

ChangeLog
vala/valagenieparser.vala

index 3c41537644dc9b885da50963510046f5e4ef1914..cfa5367e2a3ce9c2d160c74376a6c7d856545dbc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-26  Jamie McCracken  <jamiemcc@gnome.org>
+
+       * vala/valagenieparser.vala:
+
+       Deprecate static classes
+
 2008-05-26  Jamie McCracken  <jamiemcc@gnome.org>
 
        * vala/valgenieparser.vala: replaced foreach with for..in
index c50cca2919c1326b96f34b31ebeb46c2d7999fa6..73caa068957d8084475a1a94231028ef77d7bc48 100644 (file)
@@ -2205,6 +2205,7 @@ public class Vala.Genie.Parser : CodeVisitor {
                }
                if (ModifierFlags.STATIC in flags) {
                        cl.is_static = true;
+                       Report.warning (get_last_src (), "static classes are deprecated, use namespaces");
                }
                set_attributes (cl, attrs);
                foreach (TypeParameter type_param in type_param_list) {