comparison 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
comparison
equal deleted inserted replaced
498:49c201b5c465 499:52447db67938
9 struct Identifier 9 struct Identifier
10 { 10 {
11 TOK type; 11 TOK type;
12 string str; 12 string str;
13 13
14 static Identifier opCall(TOK type, string str) 14 static Identifier* opCall(TOK type, string str)
15 { 15 {
16 Identifier i; 16 auto i = new Identifier;
17 i.type = type; 17 i.type = type;
18 i.str = str; 18 i.str = str;
19 return i; 19 return i;
20 } 20 }
21 21