Mercurial > projects > dang
comparison ast/Decl.d @ 173:50b98a06a200
Start of support for virtual functions
author | Anders Halager <halager@gmail.com> |
---|---|
date | Thu, 24 Jul 2008 20:40:04 +0200 |
parents | 01c2c49775ef |
children | 08f68d684047 |
comparison
equal
deleted
inserted
replaced
172:01c2c49775ef | 173:50b98a06a200 |
---|---|
244 { | 244 { |
245 super(DeclType.ClassDecl); | 245 super(DeclType.ClassDecl); |
246 this.identifier = identifier; | 246 this.identifier = identifier; |
247 | 247 |
248 auto name = new Identifier(identifier.loc, "__vptr"); | 248 auto name = new Identifier(identifier.loc, "__vptr"); |
249 auto type = new IdentifierTypeExp(identifier.loc, "int"); | 249 auto type = new IdentifierTypeExp(identifier.loc, "byte"); |
250 auto p_type = new PointerTypeExp(type); | 250 auto p_type = new PointerTypeExp(type); |
251 decls ~= new VarDecl(p_type, name, null); | 251 decls ~= new VarDecl(p_type, name, null); |
252 } | 252 } |
253 | 253 |
254 void addMember(Decl decl) | 254 void addMember(Decl decl) |