diff sema/Visitor.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/sema/Visitor.d	Tue May 06 22:49:43 2008 +0200
+++ b/sema/Visitor.d	Wed May 07 19:58:13 2008 +0200
@@ -13,9 +13,10 @@
 class Visitor(FinalT = int, ModuleT = FinalT, DeclT = ModuleT, StmtT = DeclT, ExpT = StmtT)
 {
 public:
-    FinalT visit(Module m)
+    FinalT visit(Module[] modules)
     {
-        visitModule(m);
+        foreach(m ; modules)
+            visitModule(m);
         static if (is(FinalT == void))
             return;
         else