Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template Alias(T...)
- {
- alias T Alias;
- }
- alias Alias!(__traits(allMembers, abc)) ABCMEMBS;
- void main(){
- foreach(m;ABCMEMBS){
- writeln(m, ": ", typeid(typeof(__traits(getMember, abc, m))));
- }
- }
- class abc{
- void foo(){
- }
- int a,b,c;
- }
Add Comment
Please, Sign In to add comment