Mercurial > projects > ddmd
comparison dmd/TemplateMixin.d @ 96:acd69f84627e
further work
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 02:12:15 +0200 |
parents | 37b95c347975 |
children | 3482c73a991b |
comparison
equal
deleted
inserted
replaced
95:ae5b11064a9a | 96:acd69f84627e |
---|---|
68 version (LOG) | 68 version (LOG) |
69 { | 69 { |
70 printf("+TemplateMixin.semantic('%s', this=%p)\n", toChars(), this); | 70 printf("+TemplateMixin.semantic('%s', this=%p)\n", toChars(), this); |
71 fflush(stdout); | 71 fflush(stdout); |
72 } | 72 } |
73 if (semanticRun && | 73 if (semanticRun) |
74 // This for when a class/struct contains mixin members, and | 74 { |
75 // is done over because of forward references | 75 // This for when a class/struct contains mixin members, and |
76 (!parent || !toParent().isAggregateDeclaration())) | 76 // is done over because of forward references |
77 { | 77 if (parent && toParent().isAggregateDeclaration()) |
78 version (LOG) { | 78 semanticRun = 1; // do over |
79 printf("\tsemantic done\n"); | 79 else |
80 } | 80 { |
81 return; | 81 version (LOG) |
82 { | |
83 writef("\tsemantic done\n"); | |
84 } | |
85 return; | |
86 } | |
82 } | 87 } |
83 if (!semanticRun) | 88 if (!semanticRun) |
84 semanticRun = 1; | 89 semanticRun = 1; |
85 version (LOG) { | 90 version (LOG) { |
86 printf("\tdo semantic\n"); | 91 printf("\tdo semantic\n"); |