Proposal: user defined attributes

F i L witte2008 at gmail.com
Wed Mar 21 08:20:34 PDT 2012


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"];



More information about the Digitalmars-d mailing list