Using traits get a list of methods and filter out the member vars.

Jacob Carlborg doob at me.com
Sun Sep 8 12:48:30 PDT 2013


On 2013-09-08 18:43, Gary Willoughby wrote:

> This looks like a nice solution but i get errors when used across
> modules. The problem is that allmembers emits private members so across
> modules they are not available.

I'm wondering if it tries to call the method here:

static if (is(typeof(member) == function))

Since D allows to call methods without parentheses.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list