diff ast/Decl.d @ 101:fea8d61a2451 new_gen

First step(the other first was a bad one) toward imports. You can now compile two files that use eachother - given that they both are in the command line. Right now it's only root sturcts and methods you can use(i guess...?)
author Anders Johnsen <skabet@gmail.com>
date Wed, 07 May 2008 19:58:13 +0200
parents 857f0d530789
children cd066f3b539a
line wrap: on
line diff
--- a/ast/Decl.d	Tue May 06 22:49:43 2008 +0200
+++ b/ast/Decl.d	Wed May 07 19:58:13 2008 +0200
@@ -67,6 +67,15 @@
         super(DeclType.ImportDecl);
     }
 
+    char[] get()
+    {
+        char[] res;
+        foreach(i ; packages)
+            res ~= i.get ~ ".";
+        res ~= name.get;
+        return res;
+    }
+
     bool isStatic = false;
 
     Identifier[] packages;