Proposal: user defined attributes

Jacob Carlborg doob at me.com
Wed Mar 21 10:08:06 PDT 2012


On 2012-03-21 16:26, F i L wrote:

> Also, if where meant how could you store multiple types, you could just
> use an Associative Array:
>
> struct A {
> int a;
> float b;
> mixin NonSerialized!(a, b);
> }
>
> static const __nonSerialized = ["int":"a", "int":"b"];

Only the name of the variables are necessary in my serialization library.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list