comparison dmd/cast.c @ 717:a26b0c5d5942

Merged DMD 1.036. Improved comments a little in the runtime source code.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 22 Oct 2008 17:06:17 +0200
parents eef8ac26c66c
children bc982f1ad106
comparison
equal deleted inserted replaced
716:b654bb98d31d 717:a26b0c5d5942
322 } 322 }
323 323
324 MATCH NullExp::implicitConvTo(Type *t) 324 MATCH NullExp::implicitConvTo(Type *t)
325 { 325 {
326 #if 0 326 #if 0
327 printf("NullExp::implicitConvTo(this=%s, type=%s, t=%s)\n", 327 printf("NullExp::implicitConvTo(this=%s, type=%s, t=%s, committed = %d)\n",
328 toChars(), type->toChars(), t->toChars()); 328 toChars(), type->toChars(), t->toChars(), committed);
329 #endif 329 #endif
330 if (this->type->equals(t)) 330 if (this->type->equals(t))
331 return MATCHexact; 331 return MATCHexact;
332 // NULL implicitly converts to any pointer type or dynamic array 332 // NULL implicitly converts to any pointer type or dynamic array
333 if (type->ty == Tpointer && type->next->ty == Tvoid) 333 if (type->ty == Tpointer && type->next->ty == Tvoid)