Mercurial > projects > ddmd
comparison dmd/expression/Util.d @ 159:2e2ed2632ccc
overloadApply bug fixed (visitor is a struct and thus should be passed by reference)
author | korDen |
---|---|
date | Sun, 19 Sep 2010 07:16:57 +0400 |
parents | 80f4806ffa13 |
children | d237b38b5858 |
comparison
equal
deleted
inserted
replaced
158:80f4806ffa13 | 159:2e2ed2632ccc |
---|---|
134 * Exit when no more, or dg(param, f) returns 1. | 134 * Exit when no more, or dg(param, f) returns 1. |
135 * Returns: | 135 * Returns: |
136 * 0 continue | 136 * 0 continue |
137 * 1 done | 137 * 1 done |
138 */ | 138 */ |
139 bool overloadApply(Visitor)(FuncDeclaration fstart, Visitor visitor) | 139 bool overloadApply(Visitor)(FuncDeclaration fstart, ref Visitor visitor) |
140 { | 140 { |
141 FuncDeclaration f; | 141 FuncDeclaration f; |
142 Declaration d; | 142 Declaration d; |
143 Declaration next; | 143 Declaration next; |
144 | 144 |