comparison dmd/StructDeclaration.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents 43073c7c7769
children 8e69d041a99d
comparison
equal deleted inserted replaced
83:ee670dd808a8 84:be2ab491772e
261 if (fd) 261 if (fd)
262 { // Create the thunk, fdptr 262 { // Create the thunk, fdptr
263 FuncDeclaration fdptr = new FuncDeclaration(loc, loc, fdx.ident, STC.STCundefined, tfeqptr); 263 FuncDeclaration fdptr = new FuncDeclaration(loc, loc, fdx.ident, STC.STCundefined, tfeqptr);
264 Expression e = new IdentifierExp(loc, Id.p); 264 Expression e = new IdentifierExp(loc, Id.p);
265 e = new PtrExp(loc, e); 265 e = new PtrExp(loc, e);
266 Expressions args = new Expressions(); 266 auto args = new Expressions();
267 args.push(cast(void*)e); 267 args.push(e);
268 e = new IdentifierExp(loc, id); 268 e = new IdentifierExp(loc, id);
269 e = new CallExp(loc, e, args); 269 e = new CallExp(loc, e, args);
270 fdptr.fbody = new ReturnStatement(loc, e); 270 fdptr.fbody = new ReturnStatement(loc, e);
271 ScopeDsymbol ss = fdx.parent.isScopeDsymbol(); 271 ScopeDsymbol ss = fdx.parent.isScopeDsymbol();
272 assert(ss); 272 assert(ss);