http://d.puremagic.com/issues/show_bug.cgi?id=4997



--- Comment #3 from bearophile_h...@eml.cc 2012-05-27 10:56:27 PDT ---
Two other useful properties are "succ" and "pred", to be used similarly to:

enum MyEnum : ushort {
    FOO  = 10,
    BAR  = 20,
    BAZ  = 40,
    SPAM = 30
}

static assert(MyEnum.BAR.meta.succ == MyEnum.BAZ);
static assert(MyEnum.BAR.meta.pred == MyEnum.FOO);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to