comparison dmd/TypeDelegate.d @ 135:af1bebfd96a4 dmd2037

dmd 2.038
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 13 Sep 2010 22:19:42 +0100
parents 60bb0fe4563e
children 14feb7ae01a6
comparison
equal deleted inserted replaced
134:4251f96733f4 135:af1bebfd96a4
111 override Expression defaultInit(Loc loc) 111 override Expression defaultInit(Loc loc)
112 { 112 {
113 version (LOGDEFAULTINIT) { 113 version (LOGDEFAULTINIT) {
114 printf("TypeDelegate.defaultInit() '%s'\n", toChars()); 114 printf("TypeDelegate.defaultInit() '%s'\n", toChars());
115 } 115 }
116 Expression e; 116 return new NullExp(loc, this);
117 e = new NullExp(loc);
118 e.type = this;
119 return e;
120 } 117 }
121 118
122 override bool isZeroInit(Loc loc) 119 override bool isZeroInit(Loc loc)
123 { 120 {
124 return true; 121 return true;