comparison dmd/TemplateInstance.d @ 169:e7769d53e750

Moves static variables from Module to Global
author korDen
date Thu, 30 Sep 2010 13:29:54 +0400
parents af1bebfd96a4
children 96c0fff6897d
comparison
equal deleted inserted replaced
168:ceed63f310fb 169:e7769d53e750
607 607
608 /* If any of the instantiation members didn't get semantic() run 608 /* If any of the instantiation members didn't get semantic() run
609 * on them due to forward references, we cannot run semantic2() 609 * on them due to forward references, we cannot run semantic2()
610 * or semantic3() yet. 610 * or semantic3() yet.
611 */ 611 */
612 for (size_t i = 0; i < Module.deferred.dim; i++) 612 auto deferred = global.deferred;
613 for (size_t i = 0; i < deferred.dim; i++)
613 { 614 {
614 Dsymbol sd = cast(Dsymbol)Module.deferred.data[i]; 615 Dsymbol sd = cast(Dsymbol)deferred.data[i];
615 616
616 if (sd.parent is this) 617 if (sd.parent is this)
617 goto Laftersemantic; 618 goto Laftersemantic;
618 } 619 }
619 620