Re: allMembers trait for module

2014-10-14 Thread ketmar via Digitalmars-d
On Tue, 14 Oct 2014 13:10:23 +0300 ketmar via Digitalmars-d wrote: mkay, mkay, we have an easy solution to sort out "non-module" symbols: enum isModuleMember(alias mod, alias id) = is(typeof(__traits(getMember, mod, id))); string listit(alias mod) () { foreach (m; __traits(allMembers

allMembers trait for module

2014-10-14 Thread ketmar via Digitalmars-d
Hello. i really really wonder if the following program should ouput what it outputs: version = wtf; string listit(alias mod) () { foreach (m; __traits(allMembers, mod)) { pragma(msg, m); } return ""; } enum s = listit!(mixin(__MODULE__)); i see this: object wtf l