On 2013-01-07 12:59, Tove wrote:
> in which context does private fail? I'm using something like this:
>
> struct my_struct
> {
> private:
> @(1) int t1;
> @(2) int t2;
> @(3) int t3;
> }
>
> foreach(m; __traits(allMembers, my_struct))
> with(my_struct.init)
> pragma(msg, __traits(getAttributes, mixin(m)));
Using a mixin works.
--
/Jacob Carlborg