Mercurial > projects > ddmd
annotate dmd/TypeNewArray.d @ 192:eb38fdcb3e62 default tip
updated to compile with dmd2.062
author | korDen |
---|---|
date | Sat, 02 Mar 2013 01:25:52 -0800 |
parents | b0d41ff5e0df |
children |
rev | line source |
---|---|
79 | 1 module dmd.TypeNewArray; |
2 | |
114 | 3 import dmd.common; |
79 | 4 import dmd.HdrGenState; |
5 import dmd.MOD; | |
6 import dmd.OutBuffer; | |
7 import dmd.Type; | |
8 import dmd.TypeNext; | |
9 import dmd.TY; | |
10 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
11 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
12 |
79 | 13 /** T[new] |
14 */ | |
15 class TypeNewArray : TypeNext | |
16 { | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
17 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
18 |
79 | 19 this(Type next) |
20 { | |
178 | 21 register(); |
79 | 22 super(Tnarray, next); |
23 //writef("TypeNewArray\n"); | |
24 } | |
25 | |
154
14feb7ae01a6
* changed the build system to build a release version if the debug one compiles
trass3r
parents:
114
diff
changeset
|
26 override void toCBuffer2(OutBuffer buf, HdrGenState *hgs, MOD mod) |
79 | 27 { |
28 if (mod != this.mod) | |
29 { | |
30 toCBuffer3(buf, hgs, mod); | |
31 return; | |
32 } | |
33 next.toCBuffer2(buf, hgs, this.mod); | |
34 buf.writestring("[new]"); | |
35 } | |
36 } |