On 2013-07-12 09:25, JS wrote:
BTW, the error is

testmodule.d(14): Error: undefined identifier main

Where does "main" come from?

which suggests that the template can't find the module. I can import the
module and it will work fine but this seems a bit circular. I will try
and mixin the module to solve my original problem but still need to
figure out how to handle overloads.

Try this:

1. Iterate over all members
2. Run __traits(getOverloads) for each member
3. Iterate all overloads
3. Run __traits(isFinalFunction) for each overload

http://dlang.org/traits.html#getOverloads
http://dlang.org/traits.html#allMembers
http://dlang.org/traits.html#derivedMembers

--
/Jacob Carlborg

Reply via email to