comparison d2/qtd/Signal.d @ 403:8564ab82ea42

merge
author Eldar Insafutdinov
date Thu, 17 Mar 2011 19:46:11 +0000
parents e67ce7c21758 d0a103f25091
children
comparison
equal deleted inserted replaced
402:e67ce7c21758 403:8564ab82ea42
206 // ------------------------------------------------------------------ 206 // ------------------------------------------------------------------
207 207
208 string[] getSymbols(C)(string prefix) 208 string[] getSymbols(C)(string prefix)
209 { 209 {
210 string[] result; 210 string[] result;
211 auto allSymbols = __traits(derivedMembers, C); 211 foreach(s; __traits(derivedMembers, C))
212 foreach(s; allSymbols)
213 { 212 {
214 if(startsWith(s, prefix)) 213 if(startsWith(s, prefix))
215 result ~= s; 214 result ~= s;
216 } 215 }
217 return result; 216 return result;