diff dang/compiler.d @ 168:7982eb63c0eb

Some changes to get function overloading to work. Also class inherit works now - to some extend. needs vtables and all the complex stuff of it.
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 12:06:48 +0200
parents 6c5a3c0bb4fb
children dc9bf56b7ace
line wrap: on
line diff
--- a/dang/compiler.d	Tue Jul 22 21:34:53 2008 +0200
+++ b/dang/compiler.d	Thu Jul 24 12:06:48 2008 +0200
@@ -29,6 +29,7 @@
        sema.LiteralInterpreter,
        sema.ScopeCheck,
        sema.VC,
+       sema.ObjectOriented,
        sema.TypeCheck;
 
 import tango.stdc.posix.unistd;
@@ -320,6 +321,11 @@
     auto type_check = watch2.stop;
 
     watch2.start;
+    (new ObjectOriented(messages)).visit(modules);
+    messages.checkErrors;
+    auto object_check = watch2.stop;
+
+    watch2.start;
     auto vc = new VC;
     vc.msg = messages;
     foreach (m; modules)