The OpenD Programming Language

DeserializableMembers

enum string[] DeserializableMembers(T);

Return Value

list of the deserializable (public setters) members.

Examples

struct I
{
    int f;
    void ga(int) @property {}
}

struct S
{
    int d;
    package int p;

    int gm() @property {return 0;}
    void gm(int) @property {}

    private int q;

    I i;
    alias i this;


    void gc(int, int) @property {}
    void gc(int) @property {}
}

S s;
// s.gc(0);

static assert (DeserializableMembers!S == ["f", "ga", "d", "gm", "gc"]);
static assert (DeserializableMembers!(const S) == []);

Meta