Proposal: user defined attributes

Jacob Carlborg doob at me.com
Wed Mar 21 10:07:14 PDT 2012


On 2012-03-21 16:20, F i L wrote:
> Andrei Alexandrescu wrote:
>> In case there are several non-serialized variables, how do you avoid
>> clashes between different definitions of __nonSerialized?
>
> struct A {
> int a, b;
> mixin NonSerialized!(a, b);
> }
>
> static const __nonSerialized = ["a", "b"];
>

Exactly.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list