comparison dmd/NewExp.d @ 187:b0d41ff5e0df

Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author Abscissa
date Tue, 07 Jun 2011 23:37:34 -0400
parents cd48cb899aee
children eb38fdcb3e62
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
48 import dmd.backend.RTLSYM; 48 import dmd.backend.RTLSYM;
49 import dmd.codegen.Util; 49 import dmd.codegen.Util;
50 50
51 import std.string : toStringz; 51 import std.string : toStringz;
52 52
53 import dmd.DDMDExtensions;
54
53 class NewExp : Expression 55 class NewExp : Expression
54 { 56 {
57 mixin insertMemberExtension!(typeof(this));
58
55 /* thisexp.new(newargs) newtype(arguments) 59 /* thisexp.new(newargs) newtype(arguments)
56 */ 60 */
57 Expression thisexp; // if !null, 'this' for class being allocated 61 Expression thisexp; // if !null, 'this' for class being allocated
58 Expressions newargs; // Array of Expression's to call new operator 62 Expressions newargs; // Array of Expression's to call new operator
59 Type newtype; 63 Type newtype;