wanna bitflags support
Katayama Hirofumi MZ
katayama.hirofumi.mz at gmail.com
Sun Feb 9 04:01:49 PST 2014
bitflags WINSTYLEBITFLAGS : uint
{
WS_VISIBLE = 1,
WS_CHILD = 2,
...
}
bool CreateWindow(WINSTYLEBITFLAGS styles);
static assert(typeid(WS_VISIBLE) == typeid(WINSTYLEBITFLAGS));
static assert(typeid(WS_CHILD) == typeid(WINSTYLEBITFLAGS));
static assert(typeid(WS_VISIBLE | WS_CHILD) ==
typeid(WINSTYLEBITFLAGS));
How do you consider about this?
More information about the Digitalmars-d
mailing list