comparison dmd/TypeArray.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 e3afd1303184
children
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
15 import dmd.Identifier; 15 import dmd.Identifier;
16 import dmd.TY; 16 import dmd.TY;
17 import dmd.IntegerExp; 17 import dmd.IntegerExp;
18 import dmd.Global; 18 import dmd.Global;
19 19
20 import dmd.DDMDExtensions;
21
20 // Allow implicit conversion of T[] to T* 22 // Allow implicit conversion of T[] to T*
21 bool IMPLICIT_ARRAY_TO_PTR() 23 bool IMPLICIT_ARRAY_TO_PTR()
22 { 24 {
23 return global.params.useDeprecated; 25 return global.params.useDeprecated;
24 } 26 }
25 27
26 class TypeArray : TypeNext 28 class TypeArray : TypeNext
27 { 29 {
30 mixin insertMemberExtension!(typeof(this));
31
28 this(TY ty, Type next) 32 this(TY ty, Type next)
29 { 33 {
30 register(); 34 register();
31 super(ty, next); 35 super(ty, next);
32 } 36 }