diff trunk/src/dil/Identifier.d @ 499:52447db67938

Implemented global table of identifiers.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 09 Dec 2007 22:37:47 +0100
parents 33b566df6af4
children 4e14cd1b24da
line wrap: on
line diff
--- a/trunk/src/dil/Identifier.d	Sun Dec 09 19:37:32 2007 +0100
+++ b/trunk/src/dil/Identifier.d	Sun Dec 09 22:37:47 2007 +0100
@@ -11,9 +11,9 @@
   TOK type;
   string str;
 
-  static Identifier opCall(TOK type, string str)
+  static Identifier* opCall(TOK type, string str)
   {
-    Identifier i;
+    auto i = new Identifier;
     i.type = type;
     i.str = str;
     return i;